• 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
Running a single thread as root...sort of.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running a single thread as root...sort of.


  • Subject: Running a single thread as root...sort of.
  • From: "Huyler, Christopher M" <email@hidden>
  • Date: Thu, 24 Jun 2004 12:00:00 -0400
  • Thread-topic: Running a single thread as root...sort of.

I have read most of the documentation on creating setuid-root helper
tools but I would like to improve upon it by using Distributed Objects.
Here's my thought:

Create a helper tool in Cocoa that will authenticate and setuid-root
itself but it will stay up as a service until it is told to shutdown.
Then, once the user has authenticated, I can use Distributed Objects to
send commands to it, rather than relaunching the tool over and over
again. I have used Distributed Objects to create multiple threads in my
Preference Pane...basically I want a thread that is running as root.
Make sense?

Is this possible?
Has anyone done something similar?
Are there security issues with this approach I should be aware of?
Is there any sample code out there that could help me?

Thanks,
~ Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Running a single thread as root...sort of.
      • From: OL&L Lists <email@hidden>
    • Re: Running a single thread as root...sort of.
      • From: Glenn Andreas <email@hidden>
  • Prev by Date: Re: Slightly more advanced Cocoa learning resources
  • Next by Date: Re: Register for a protocol (e.g. mine://)
  • Previous by thread: Obtain customized drawing rect from a hidden nsimageview
  • Next by thread: Re: Running a single thread as root...sort of.
  • Index(es):
    • Date
    • Thread