• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTask launch of suid helper tool will not terminate...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Protocol implementation split between base and derived class
  • Next by Date: Re: Protocol implementation split between base and derived class
  • Previous by thread: Re: Protocol implementation split between base and derived class
  • Next by thread: Help with runtime warning
  • Index(es):
    • Date
    • Thread