setiud and AuthorizationExecuteWithPriviledges
setiud and AuthorizationExecuteWithPriviledges
- Subject: setiud and AuthorizationExecuteWithPriviledges
- From: Carl Gherardi <email@hidden>
- Date: Mon, 10 Feb 2003 16:20:56 +0800
'lo all,
Thanks to all who answered my questions on and off list about the
Authorization framework earlier.
I now have a peice of wrapper c code that sets the UID to root. I want to
include this as part of a standalone app. Attaching it as part of the app
isnt a problem, but AuthorizationExecuteWithPriviledges requires a const *
char * args as its 4 th arg.
Similar to:
char * toolPath = "/User/carlos/x.app/Contents/MacOS/wrapper";
char * args[] =
"/User/carlos/x.app/.../appthatneedspriv.app/.../appthatneedspriv";
AuthorizationExecuteWithPriviledges(aref,toolPath,flags,args,&pipe);
If I set this up statically as above it works fine. but as soon as I move
the application it stops working, as it requires the full pathname, and the
data structure is const.
As a simple C question - is there a way to get around this?
TIA
Carl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.