• 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
Using DO to talk to a process running as root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using DO to talk to a process running as root
      • From: email@hidden
  • Prev by Date: Re: Wrong type of button in IB?
  • Next by Date: Re: Wrong type of button in IB?
  • Previous by thread: Re: Bindings and Undoing changes
  • Next by thread: Re: Using DO to talk to a process running as root
  • Index(es):
    • Date
    • Thread