Re: launchd daemon, spawning children?
Re: launchd daemon, spawning children?
- Subject: Re: launchd daemon, spawning children?
- From: Kevin Van Vechten <email@hidden>
- Date: Wed, 01 Oct 2008 22:30:17 -0700
On Oct 1, 2008, at 12:21 PM, Terry Lambert wrote:
You probably actually want:
setgid();
syscall(SYS_initgroups, int ngroups, const gid_t *gidset, uid_t
gmuid)
Calling initgroups(3) is a better idea. It's not recommended to make
syscalls directly. Doing so might not be compatible with future
releases of Mac OS X.
If you do not set the group membership uid, and do it without any
other modifications of the credential, save the final setuid(), then
you will opt out of external group resolution. This means that if
you have put a user into more than 16 groups in DirectoryServices,
you wil only see 16 of them, and due to ordering ambiguity, you will
only be guaranteed that the primary group ID for the user will be in
that list of 16.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden