Re: Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
Re: Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
- Subject: Re: Setting stderr for a helper run with AuthorizationExecuteWithPrivileges
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 20 May 2005 14:20:28 +0100
On 5/12/05, John Clayton <email@hidden> wrote:
> Hi,
>
> I am running an installer tool using security services via
> AuthorizationExecuteWithPrivileges(). I need (ok, want) to
> differentiate between the child process' stdout and stderr. Stdout is
> set up for me in the function call, of course. But, how can I tell the
> child to use a different communications channel for its stderr and not
> the parent's?
You can't do that with AEWP(). You'll have to set the setuid bit on
the executable and then launch it in the normal fashion, as
demonstrated in the MoreAuthSample code.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden