The security API is not fully available under Monobjc. The privilege
elevation API needs some a serious work to be ported, and for now, I am a
bit short of time.

If you really need this API, you can start to port it and I would be happy
to help you in the process.

Regards, Laurent Etiemble.

2010/5/22 Yvan Janssens <i...@yvanjanssens.tk>

> Hi,
> How do I authorize my program to run with elevated privileges?
> In the Apple docs, they mention an example with the AuthorizationCreate
> function
> (http://developer.apple.com/mac/library/documentation/Security/Conceptua
> l/authorization_concepts/03authtasks/authtasks.html#//apple_ref/doc/uid/
> TP30000995-CH206-BBCHCEEG ), but I cannot find it in Monobjc?
> So basically, my app needs to check if it's running as root, and if not,
> ask for permissions and rerun itself.
> Thanks!!
> Yvan

Reply via email to