Authorization question
Authorization question
- Subject: Authorization question
- From: Darkshadow <email@hidden>
- Date: Sun, 1 Jun 2003 05:04:42 -0400
- Nightproductions: dreamstatic.dyndns.org
Don't start groaning yet, I did look through the archives and didn't
see anything touching on this.
I'm making a preference pane that uses a helper tool. The tool
(foundation tool that I made) needs to run as root to do its thing, so
of course, I'm calling the authorization routines to execute it. Going
from numerous examples, I set the right I want to
kAuthorizationRightExecute. Everything works beautifully,
authorization works fine. I then decided that I wanted to set the
rights to system.preferences to have the preference pane share the
rights with the others - seemed a pretty standard thing to do for a
preference pane to me. Doing so works - my pane is authorized or not
authorized as the others are - but upon executing my helper tool, I'm
asked to authorize again.
Is this the way it's supposed to work? Execution will only work if you
have kAuthorizationRightExecute as the right you want? It seems crazy
that way - I've already authorized, why would it need to be authorized
again before it could execute? The only difference I see between the
two rights is that system.preferences is shared and doesn't time out.
Otherwise, they share the same rights.
If it's not supposed to work that way, if I should be able to execute
the helper tool with the system.preferences right, let me know and I'll
post back with the authorization code I'm using.
Thanks,
Darkshadow (aka Mike)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.