NSTask launch of suid helper tool will not terminate...
NSTask launch of suid helper tool will not terminate...
- Subject: NSTask launch of suid helper tool will not terminate...
- From: Steven Palm <email@hidden>
- Date: Wed, 8 Dec 2004 16:45:50 -0600
Greetings to all,
I'm writing a program that has a SUID helper tool (self-repairing,
using Security/Authentication stuff as documented in Apple's reference
materials).
Everything works fine, except that for one function the app performs I
have to do:
olduid = setuid(0)
launch a sub-task
setuid(olduid)
For some reason, if I don't setuid() this particular sub-task can't
perform all the tasks it needs to, but if I do this the sub-task
launches properly and is indeed launched as root. However at this point
my NSTask that launched the original helper program cannot be
terminated. If I send it a terminate message and then waitUntilExit the
program will wait forever, or until I kill the sub-task from a terminal
session.
Anyone know what I'm missing here?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden