Re: testing the current bootstrap context?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... On Apr 8, 2009, at 4:50 PM, Bill Janssen wrote: The only way to do this in Leopard seems to be with launchd, which seems to do the right thing. The main problem with using launchd here is that users cannot manipulate their own server; you can either use a root LaunchDaemon which only root can unload, or a user LaunchDaemon which is again fatally bound to the login bootstrap context. Actually, Damien pointed out that you can call bootstrap_subset(), but I imagine you might consider this to count as "fatally bound", with it being an inferior member of the hierarchy of that context. You could always have a root LaunchDaemon that owned the context via bootstrap_subset(), and it could voluntarily respond to outside proxy requests to manipulate it from non-root users, which is effectively how loginWindow handles it, and how the per-user launchd handles it. The model is a little more complicated, but it would work. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert