Re: AuthorizationExecuteWithPrivileges(): implementation bug or correct behavior?
Re: AuthorizationExecuteWithPrivileges(): implementation bug or correct behavior?
- Subject: Re: AuthorizationExecuteWithPrivileges(): implementation bug or correct behavior?
- From: Darkshadow <email@hidden>
- Date: Mon, 14 Feb 2005 10:19:05 -0500
On Feb 14, 2005, at 10:00 AM, Finlay Dobbie wrote:
On 14 Feb 2005, at 15:00, Darkshadow wrote:
What is happening (with me at least), is that
AuthorizationExecuteWithPrivileges() *is not* displaying a dialog to
gain the system.privilege.admin right. It's being granted without
displaying the dialog. The helper tool successfully relaunches
itself via AEWP() and repairs itself. After the run, the helper tool
is setuid root. This happens on both of my machines. In any user
account. Did you try my code (and edit it to have your admin
name/password)?
It's being shown here. I did test it with your code.
Are you sure you haven't already been granted the right and haven't
waited for it to expire before trying again?
-- Finlay
_
Very certain. It isn't working because of the right still being valid.
I very carefully tested that one out before posting this. Plus, I
tried it on my iBook, where it worked as well and no calls to AEWP()
had been issued previously. This is strange... I'll have to look and
see if there's something I've done or installed that is causing this.
My iBook is more or less a clone of my desktop, so it's a possibility.
Darkshadow (aka Michael Nickerson)
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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