Re: Question about SMJobBless
Re: Question about SMJobBless
- Subject: Re: Question about SMJobBless
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 30 Sep 2011 16:31:27 +0200
If you want answer, you should try the darwin-dev list.
SMJobBless is not cocoa specific, and so is off-topic on this list, and IIRC, the engineer in charge of the ServiceManagement framework is a darwin-dev subscriber.
Le 30 sept. 2011 à 16:01, Eric Gorr a écrit :
> I had a couple of followup questions concerning the approach used by SMJobBless in developing a secure helper tool.
>
> In the How It Works section in the ReadMe, it states:
>
> 4. Requiring the user to authorize the privileged helper tool only once the first time it's used
>
> This is what I believe led to my confusion on why the app continues to ask for the password every time I launch it.
>
> However, this statement actually refers to the need to just ask for the password once at application launch and have the authorization remain valid while the application is running. Is this correct?
>
>
> I am also wondering how it might be possible to only ask for an admin password once as an absolute regardless of the number of time the application was launched. Is this possible? If so, how?
>
> Thank you.
>
> On Sep 29, 2011, at 4:45 PM, Eric Gorr wrote:
>
>> I cannot seem to locate any documentation on this, so hopefully someone can confirm the behavior I am seeing with Apple's sample SMJobBless code located at:
>>
>> http://developer.apple.com/library/mac/#samplecode/SMJobBless/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010071
>>
>> I was under the impression that it would only ask for an admin password if it detected a that a new version of the helper tool needed to be installed.
>>
>> However, this impression is apparently incorrect.
>>
>> The behavior I am seeing under 10.6 is that if I launch the app for the first time, it will ask for the password. If I launch almost immediately, it won't. However, if I wait a long enough time, it will ask for the password again. During all of this, the helper tool does not change.
>>
>> Can anyone point to documentation that defines this as the correct behavior?
>>
>> Thank you.
>>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
-- Jean-Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden