Search code examples
macoscode-injection

Elevating rights to use mach_inject


How do you elevate user rights to root using the Authorization API so that it is possible to use mach_inject?


Solution

  • You don't need to be root to use mach_inject; instead, you need to sign your code. For testing purposes only (and in 10.4/10.5) you can also make your application setgid procmod.

    See TN2206 for more information.