Re: Communicating with Privileged Helper Tool

2016-01-07 Thread Damien DeVille
I suspect the problem is that your GUI application cannot find the helper’s Mach service because they are not in the same bootstrap domain. When using xpc, one can use `XPC_CONNECTION_MACH_SERVICE_PRIVILEGED` or `NSXPCConnectionPrivileged` to connect from a user process to a listener in the roo

Re: Communicating with Privileged Helper Tool

2015-12-23 Thread Mark Allan
Hi Damien, Thanks for replying. > On 23 Dec 2015, at 5:18 pm, Damien DeVille wrote: > >> Unfortunately, this gives me the exact same issue: > > How are you creating the other end of the connection? The remote port will > just attempt to connect to the local port and not actually register the

Communicating with Privileged Helper Tool

2015-12-23 Thread Mark Allan
Hi all, I've got a an OS X application that needs to perform some privileged operations, so I've written a privileged helper tool (PHT) and it all works fine to call the necessary functions from my user-land application and get the response. What I'm struggling with is some additional communic