setgroups problems on FreeBSD - proposed fix

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed May 23 21:02:19 GMT 2007


On Wed, May 23, 2007 at 11:19:55AM -0700, James Peach wrote:
> >Well, we did not do a getgroups before doing setgroups...
> 
> So where did the groups list come from? If it came from getgrouplist,  
> then group[0] is probably not the primary gid.

We're creating the list of gid's on our own, for example
from the info3 struct in the SamLogon reply.

We have a primary gid, and a list of supplementary gids. If
you're saying that for BSD's, the setgroups call overwrites
the effective gid, then the patch Björn sent would be
correct. But I have not seen any reference on this yet, and
the single unix spec does not say anything about setgroups
at all.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070523/51cc3cb3/attachment.bin


More information about the samba-technical mailing list