0
  1. I want use task_for_pid() and attach to another process and then change its memory on iOS system. I could do it successfully on OS X with the help of authorization services API, but on iOS, task_for_pid() always returns KERN_FAILURE. I need to get task_for_pid() function to work on jailbreak iPhone under root. As discussed in “Authentication” iOS does not provide this API, What should I do?

  2. Could I run as root on iOS Simulator and how to test app required running as root?

1 Answer 1

5
+50

It is returning KERN_FAILURE because of sandbox restrictions. Your executable needs the task_for_pid-allow and get-task-allow entitlements. See here for help on adding them to an executable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.