• 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: NSConnection registerName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSConnection registerName


  • Subject: Re: NSConnection registerName
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 7 Apr 2008 21:56:07 -0700


On 7 Apr '08, at 3:32 PM, SD wrote:

If I launch the deamon via command line using my regular user and then I launch the application using the Security.framework authentication, the application does not find the connection and starts a second deamon.

Sounds like the app and daemon are running in different contexts — the daemon as you and the app as root. A process with root privileges won't find a port registered by a regular user, for security reasons. (Root code can't trust user code.)


Don't you want it the other way around — the daemon running as root and the app as user? I think that direction works. (Though I'm not an expert on Mach or Unix privileges. Have you read through the long tech- note on daemons and agents?)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >NSConnection registerName (From: SD <email@hidden>)

  • Prev by Date: Re: NSURLConnection status updates
  • Next by Date: Re: How do I embed a font in an app?
  • Previous by thread: NSConnection registerName
  • Next by thread: Re: NSConnection registerName
  • Index(es):
    • Date
    • Thread