• 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
Re: Communicating to a process started by root from non-root app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Communicating to a process started by root from non-root app


  • Subject: Re: Communicating to a process started by root from non-root app
  • From: eveningnick eveningnick <email@hidden>
  • Date: Mon, 3 Jan 2011 21:22:07 +0200

> Unless I'm forgetting something basic, you should be able to connect to your daemon's socket from a non-root process if you first change the permissions on the socket (using chmod, as if it were a file). The man page for the unix-domain protocol family alludes to this briefly:
>
>> All addresses are absolute- or relative-pathnames of other UNIX-domain sockets.  Normal >filesystem access-control mechanisms are also applied when referencing pathnames; e.g., the >destination of a connect(2) or sendto(2) must be writable.

I dont want everyone to be able to write to that socket, the point is
to let only System Preferences (for example, by displaying
"Autorization dialog box" - like "User Accounts" preference pane, for
example.
I am wondering if that is possible to achieve using Authorization Server and how

Thank you
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Communicating to a process started by root from non-root app
      • From: Ken Thomases <email@hidden>
    • Re: Communicating to a process started by root from non-root app
      • From: "Stephen J. Butler" <email@hidden>
References: 
 >Communicating to a process started by root from non-root app (From: eveningnick eveningnick <email@hidden>)
 >Re: Communicating to a process started by root from non-root app (From: Wim Lewis <email@hidden>)

  • Prev by Date: Re: Communicating to a process started by root from non-root app
  • Next by Date: Re: iPhone UISearchDisplayController how to handle memory warning
  • Previous by thread: Re: Communicating to a process started by root from non-root app
  • Next by thread: Re: Communicating to a process started by root from non-root app
  • Index(es):
    • Date
    • Thread