• 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: launchd daemon, spawning children?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: launchd daemon, spawning children?
      • From: Terry Lambert <email@hidden>
References: 
 >Re: launchd daemon, spawning children? (From: Mario Emmenlauer <email@hidden>)
 >Re: launchd daemon, spawning children? (From: Terry Lambert <email@hidden>)

  • Prev by Date: Re: Open Firmware on Pismo
  • Next by Date: VFS
  • Previous by thread: Re: launchd daemon, spawning children?
  • Next by thread: Re: launchd daemon, spawning children?
  • Index(es):
    • Date
    • Thread