site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=alastairs-place.net; h= subject:mime-version:content-type:from:in-reply-to:date:cc: content-transfer-encoding:message-id:references:to; q=dns/txt; s= aug07; bh=XLlKv8gsYCwBcBLzuFwa5NIPXu0=; b=U/0IE4vGYr3nrFDtYlbaXr x/wcc4rhKFZlHZTvRmE/re4nbnnCxzJ1FrS+8gws+zxOWBjS93hMJcIYzMsS+04w 7ENiLZ1uRBivYqLTRSzAlZhIO9nPQmX4HPFUxsJQVF2hNq9h0zZO83j1/5Ferscf 02WgZHfi7EkRgjmGSO/m4= On 27 Nov 2009, at 17:28, Uli Kusterer wrote:
On 20.11.2009, at 19:31, Damien Sorresso wrote:
bootstrap_check_in() doesn't require root privileges. It only requires that you be advertising the named service in your launchd.plist.
Correct me if I'm wrong, but the plist is static, and needs to be installed with root permissions by an installer. How would we generate a plist with a dynamic service name without root permissions? Trying to coerce bootstrap_check_in() and generating a file on disk for this purpose seems like a terrible hack to me.
Doesn't launchd have per-user contexts in addition to the root context? So couldn't you e.g. stick the plist in ~/Library/LaunchAgents (for instance)? That doesn't require superuser privileges, right? Not sure which version(s) of Mac OS X it works for, mind. Alternatively, if you don't want to use launchd for some reason, presumably you could: 1. On 10.5 and earlier, use bootstrap_register(), which is known to work. 2. On 10.6 and later, use bootstrap_check_in() *without* a plist, which works even though it would have required superuser privileges on earlier versions? I haven't tried any of this, I'm just trying to come up with suggestions that might work. Kind regards, Alastair. -- http://alastairs-place.net _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com