Re: Using Security framework to get root auth for running app.
Re: Using Security framework to get root auth for running app.
- Subject: Re: Using Security framework to get root auth for running app.
- From: Steven Palm <email@hidden>
- Date: Wed, 15 Dec 2004 18:57:10 -0600
On Dec 15, 2004, at 7:00 PM, email@hidden wrote:
Yeah some one explained that to earlier too, and it makes sense. Anyway
yeah I have the binary in my head already. 3 lines of code maybe 4.
Whats
this about the copy bit that prevents the binary from being copied, and
wouldn't than forbid drag and drop install? or maybe I just don't get
that
at all.
You can follow the model of MoreAuthSample which actually doesn't
modify the binary in the bundle, but makes a separate copy in in
~/Library/Application Support/yourappname/yourbinary. This then gets
made suid so the App can be moved as you will without worries. And it
will be more than just three or four lines of code, since you will of
course want to read in the AuthRef from your App as well as the Command
to perform with parameters, but that's pretty much standard and you can
borrow Apple's code for most of that.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden