• 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
setiud and AuthorizationExecuteWithPriviledges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Weird Obj-c runtime problems
  • Next by Date: Re: setiud and AuthorizationExecuteWithPriviledges
  • Previous by thread: Re: Weird Obj-c runtime problems
  • Next by thread: Re: setiud and AuthorizationExecuteWithPriviledges
  • Index(es):
    • Date
    • Thread