• 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: AuthorizationExecuteWithoutPrivileges?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AuthorizationExecuteWithoutPrivileges?


  • Subject: Re: AuthorizationExecuteWithoutPrivileges?
  • From: Gerben Wierda <email@hidden>
  • Date: Mon, 12 Aug 2002 23:32:38 +0200

On Monday, August 12, 2002, at 11:20 , Rishi Gupta wrote:

So why couldn't you just use fork/exec? IMHO an AuthorizationExecuteWithoutPrivileges API would be a tad redundant, as you shouldn't need to use Authorization Services to run a process without any privileges. :-)

It is a matter of simplicity.

Yes, but that would mean I would have two mechanisms to run processes (and just because one is authenticated and the other not should be all the difference I would like to see). take for instance the (FILE *) communicationsPipe AEWP creates. Another mechanism means also another way to connect it to the rest of my application. AEWP does not give me the pid of the running process. I have created a workaround, but another rmechnism for non-authenticated processes would mean that I again have to do something different.

I have classes that encapsulate AEWP and friends to make it simple for me to run processes (authenticated or not). If I can use AEWP to run processes, it would just work and I would not have to write two mechanisms.

Oh well, it seems unavoidable. I'll implement the behaviour for non-athenticated processes with NSTask and friends. fork and exec would also mean setting up pipes/sockets in a multithreading environment (after all the app should be responsive when a background process runs) and all that.

G
_______________________________________________
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.

References: 
 >Re: AuthorizationExecuteWithoutPrivileges? (From: Rishi Gupta <email@hidden>)

  • Prev by Date: NSTask and avoiding buffered standard out
  • Next by Date: Re: AuthorizationExecuteWithoutPrivileges?
  • Previous by thread: Re: AuthorizationExecuteWithoutPrivileges?
  • Next by thread: Re: Subclassing a button
  • Index(es):
    • Date
    • Thread