Re: Fun with AuthorizationExecuteWithPrivileges...
Re: Fun with AuthorizationExecuteWithPrivileges...
- Subject: Re: Fun with AuthorizationExecuteWithPrivileges...
- From: Lloyd Sargent <email@hidden>
- Date: Mon, 13 Aug 2001 19:23:49 -0500
On Monday, August 13, 2001, at 07:19 PM, Andreas Monitzer wrote:
On Tuesday, August 14, 2001, at 01:55 , Lloyd Sargent wrote:
Okay, so I'm running this tool. Now I want to kill the tool. NSTask at
least gave me that. However, I don't seem to see a way you can do this
with AuthorizationExecuteWithPrivileges... Am I missing something?
Yes, you and everybody else is missing a good API. The only known way
of doing this is to get the PID of the created process via the pipe (or
some lock-file) and call /bin/kill via the security API (requires
another authorization).
andy
--
Description forthcoming.
Okay, NOW you have stretched my knowledge of *nix... how does one get
the PID via the pipe?