Is it worth persevering with Macports_Framework?

Rainer Müller raimue at
Tue Feb 12 02:03:38 PST 2013

On 2013-02-12 05:29, Guido Soranzio wrote:
> On 11/02/2013, Ian Wadham wrote:
>> I see that Cocoa has NSTask and NSPipe classes and that Guido's
>> Guigna app is using them in its GuignaAgent class.  I also like this approach
>> because there is loose binding between the processes.
> A more canonical approach would require to implement a helper tool since
> MacPorts needs root privileges. As of Snow Leopard and beyond, the
> ServiceManagement.framework 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:
> <>.

The MacPorts.framework has a helper tool which bases its authorization
on BetterAuthorizationSample [1].

> Porticus had a very solid management of privileged processes
> and that's why I petitioned its author to open source it:
> < downloads/>.
> Unfortunately Richard Laing hadn't the time to transition
> Porticus to OS X Lion and I decided for a totally different route.

Thanks for reminding us that this code is available!



More information about the macports-dev mailing list