26 Jan
2011
26 Jan
'11
9:39 a.m.
On 25 Jan 2011, at 23:10, Iceberg-Dev wrote:
If so, then you need to require root/admin authentication in the installation package (to be able to install stuff in /Library/LaunchDaemons/.
One thing to be careful of is the distinction between EUID and RUID. IIRC the Installer, when yo escalated privileges, only sets the EUID, leaving the RUID set to that of the user who ran the Installer. This causes problem for launchctl, because launchctl uses the RUID to decide which launchd to talk to. You can use the chroot trick from my previous post to set both the EUID and RUID to 0. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware