Re: Stderr from AuthorizationExecuteWithPrivileges
Re: Stderr from AuthorizationExecuteWithPrivileges
- Subject: Re: Stderr from AuthorizationExecuteWithPrivileges
- From: Eric Peyton <email@hidden>
- Date: Tue, 12 Jun 2001 09:00:25 -0500
On Tuesday, June 12, 2001, at 06:50 AM, Sven A. Schmidt wrote:
In my project, I use the Authorization framework to access a cli
tool with root privileges. Reading from stdout and writing to
stdin works fine via the (FILE **)communicationsPipe parameter in
AuthorizationExecuteWithPrivileges(...). But the cli tool
(crontab) also returns stuff via stderr which I'd need to get a
hold of.
Is there a way to get a handle to stderr?
Nope.
What about the return value?
Nope. I suggest filing an enhancement request against the Security
framework/Authorization API's.
Or, even better, is there a way to promote an NSTask to root
privileges?
Nope. If you want to do this you will need to make your
application setuid root, and then your users a) probably wouldn't
be able to easily install it or b) might consider your application
a security risk.
Eric
Is there any special reason for the double star in (FILE
**)communicationsPipe? Is it an "implicit" array with stderr
hiding in a higher offset?
TIA,
Sven
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev