• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fun with AuthorizationExecuteWithPrivileges...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Follow-Ups:
    • Re: Fun with AuthorizationExecuteWithPrivileges...
      • From: Andreas Monitzer <email@hidden>
References: 
 >Re: Fun with AuthorizationExecuteWithPrivileges... (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Fun with AuthorizationExecuteWithPrivileges...
  • Next by Date: Re: EOF Advocacy, Open Source?
  • Previous by thread: Re: Fun with AuthorizationExecuteWithPrivileges...
  • Next by thread: Re: Fun with AuthorizationExecuteWithPrivileges...
  • Index(es):
    • Date
    • Thread