Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Relevant replacement documents include:
Version 1.0, 2007-11-27
Shows the recommended way to access privileged functionality from a non-privileged application on Mac OS X.
Mac OS X 10.4.6
BetterAuthorizationSample shows the recommended way to access privileged functionality from a non-privileged application on Mac OS X. This involves putting the privileged code into a small, privileged helper tool that is run by launchd. Apple recommends this approach because it is more secure than previously documented approaches (such as using a setuid root helper tool).