Re: Using XPC for Interprocess Communication
Re: Using XPC for Interprocess Communication
- Subject: Re: Using XPC for Interprocess Communication
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Wed, 11 Mar 2015 08:08:43 -0700
On 10 Mar 2015, at 03:18, Arjun SM <email@hidden> wrote:
> Is it possible to give a provision such that only intended Clients can connect to my Server and not every independent process who knows the service name that is advertised in launchd.plist ?
Not in the launchd space.
One option is to get the pid from the XPC connection (via NSXPCConnection's processIdentifier property), build a code signing code ref from that (SecCodeCopyGuestWithAttributes), and check various code signing requirements from there (for example, you could check that it was signed by your Developer ID). It's not perfect though; if any of your code loads a plug-in, that would also get access.
Ultimately this goal is very hard to reach on an open system like OS X.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden