Re: AuthorizationExecuteWithPrivileges with execution failure error

2014-07-23 Thread John Brownie
On 23/07/2014 23:34, Appa Rao Mulpuri wrote: Any idea why following code always returning errAuthorizationToolExecuteFailure (-60031). Tried multiple combination of flags, but no luck. Not sure of the reason for your particular failure, but this method of running a privileged tool is old. Look

AuthorizationExecuteWithPrivileges with execution failure error

2014-07-23 Thread Appa Rao Mulpuri
Hi, Any idea why following code always returning errAuthorizationToolExecuteFailure (-60031). Tried multiple combination of flags, but no luck. // Create authorization reference OSStatus status; AuthorizationRef authorizationRef; // kAuthorizationRightExecute == "system.privilege