Re: NSTask root privileges?
Re: NSTask root privileges?
- Subject: Re: NSTask root privileges?
- From: Greg Guerin <email@hidden>
- Date: Sun, 14 Jun 2009 10:58:43 -0700
KK wrote:
I'm writing a Foundation tool that is only run by root (by launchd)..
Exactly how is your tool being run by launchd?
Where are you putting the agent/daemon plist?
Post the contents of that plist.
Does your tool ever call setuid() or seteuid() or any similar
function (there are several)?
Does it ever call daemon()?
Have you read TN2083: Daemons and Agents?
http://developer.apple.com/technotes/tn2005/tn2083.html
This tool is using NSTask to call another program, but it seems
like the program
that i'm calling within the NSTask is not given root privileges...
What is the other program?
Is it a setuid executable?
Please describe exactly how you know root privileges are absent for
this other program. E.g. if a file that should be accessible to root
isn't, tell us what the file is. If a system-call isn't accessible
but should be, exactly which system-call?
Does the other program call setuid() or similar functions?
What OS version is this on?
-- GG
_______________________________________________
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