SMJobBless

Last Revision:
Version 1.4, 2013-03-29
Updated to use Developer ID (r. 12167747). Added a tool to help debug problems. Other minor changes.
(Full Revision History)
Build Requirements:
Xcode 4.6 or later
Runtime Requirements:
OS X v10.6 or later

SMJobBless demonstrates how to securely install a helper tool that performs a privileged operation and how to associate the tool with an application that invokes it.

SMJobBless uses ServiceManagement.framework that was introduced in Mac OS X v10.6 Snow Leopard.

As of Snow Leopard, this is the preferred method of managing privilege escalation on Mac OS X and should be used instead of earlier approaches such as BetterAuthorizationSample or directly calling AuthorizationExecuteWithPrivileges.


Did this document help you? Yes It's good, but... Not helpful...