Using DO to talk to a process running as root
Using DO to talk to a process running as root
- Subject: Using DO to talk to a process running as root
- From: James Bucanek <email@hidden>
- Date: Thu, 16 Jun 2005 12:33:21 -0700
Greetings,
I'm writing a helper tool for a Cocoa app that will be running as root (authorization and all that).
I've got the code working using DO in a second thread, but now I need to move that code to it's own process. I'm now a little nervous, because I've been reading that message ports can be in different Mach "contexts," so that a daemon that is started via startup items can't communicate with a user application because the NSPortNameServers aren't in the same name space.
Will I have a similar problem? My plan was to launch a setuid tool, have it authorize itself and switch to root, then open up an NSConnection using connectionWithRegisteredName:.
Likewise, is there a way to have a system-wide background daemon launched such that I can communicate with it in a similar manner, or will I have to use NSSocketPorts for that?
--
James Bucanek <mailto:email@hidden>
_______________________________________________
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