On 2013 Sep 11, at 08:34, Charles Srstka wrote:
> You have to use SMJobBless to install the tool as root, and then pick your
> favorite form of IPC to communicate with it (XPC is best, if you can require
> 10.7).
That is correct. This example by Steve Streeting will probably help…
https://b
On Sep 11, 2013, at 5:53 AM, Gerriet M. Denkmann wrote:
> I have this code:
>
> AuthorizationRef auth;
> OSStatus aa = AuthorizationCreate( NULL, kAuthorizationEmptyEnvironment,
> kAuthorizationFlagDefaults, &auth);
>
> const char *pathToTool = [ theHelperPath fileSystemRepresentation ];
I have this code:
AuthorizationRefauth;
OSStatus aa = AuthorizationCreate( NULL, kAuthorizationEmptyEnvironment,
kAuthorizationFlagDefaults, &auth);
const char *pathToTool = [ theHelperPath fileSystemRepresentation ];
const char *const arguments[] = { "--self-repair", NULL };
FILE *commu