r23391: Second part of the patch for Apple.
authorJeremy Allison <jra@samba.org>
Fri, 8 Jun 2007 19:58:32 +0000 (19:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:12 +0000 (12:23 -0500)
commit0a1f5d71e4ad551f178613fff8bd288ad0cad057
tree10dabb1e2aaa2bc3f0c8041faa69afc9661716f2
parent334c961cc55aafb6b5587ba8ab517b94f1cbe278
r23391: Second part of the patch for Apple.

Change the sequence :

gain_root();
sys_setgroups(ngroups, groups);
become_id(uid, gid);

to a function call :

set_unix_security_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups)

James - should be safe for you to create a Darwin-specific
version of this function now.

Jeremy.
(This used to be commit 8ee982b3678be41ce8b4f4c1df428dcbf897ccbe)
source3/smbd/sec_ctx.c