Re: AuthorizationExecuteWithoutPrivileges?
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.