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)
Xcode 4.6 or later
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.
© 2013 Apple Inc. All Rights Reserved. (Last updated: 2013-03-29)