• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: authorization services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: authorization services


  • Subject: Re: authorization services
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 14 Sep 2009 14:17:41 -0600


On Sep 14, 2009, at 1:57 PM, Mark Thomas wrote:

I was wondering if anybody could tell me if it's correct to use authorizationExecuteWithPrivileges and wait() calls together, so the parent process wait's until that new child process finishes. Googling seems to imply this from the examples I've seen.

Correct. Well, you could not call wait(), but then you'll just wind up with a zombie task waiting for the parent to reap it or exit, which could confuse some people.


However reading the documentation (within XCode) the authorizationExecuteWithPrivileges, doesn't mention that the privileged process is actually a child of the process which executed this ?

AEWP() actually does do a fork()/exec() internally; see <http://www.opensource.apple.com/source/libsecurity_authorization/libsecurity_authorization-36329/lib/trampolineClient.cpp > for details.


Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


References: 
 >authorization services (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: authorization services
  • Next by Date: Re: coding NSNumber in NSArray?
  • Previous by thread: Re: authorization services
  • Next by thread: Re: authorization services
  • Index(es):
    • Date
    • Thread