Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Alternative to bootstrap_register?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternative to bootstrap_register?



On Nov 20, 2009, at 7:42 AM, Uli Kusterer wrote:
> On 18.11.2009, at 16:35, Alastair Houghton wrote:
>> Another alternative is just to use bootstrap_checkin() from the child process, and then you can use the port that that API returns.  The parent would then use bootstrap_look_up().
>>
>> (That's what my sample program does.)
>
>
> bootstrap_checkin() requires root privileges for the calling application (at least on 10.5 and earlier), which seems like overkill in our case. Apparently, your code uncovered that it works on 10.6 without root permissions, but sadly that won't help in our current situation :-(


bootstrap_check_in() doesn't require root privileges. It only requires that you be advertising the named service in your launchd.plist.
--
Damien Sorresso
BSD Engineering
Apple Inc.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Alastair Houghton <email@hidden>)
 >Re: Alternative to bootstrap_register? (From: Uli Kusterer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.