Date: Mon, 31 Mar 1997 05:54:54 -0800 From: David Greenman <dg@root.com> To: Peter Wemm <peter@freefall.freebsd.org> Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org Subject: Re: cvs commit: src/sys/kern kern_prot.c Message-ID: <199703311354.FAA09559@root.com> In-Reply-To: Your message of "Mon, 31 Mar 1997 05:21:39 PST." <199703311321.FAA17115@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>peter 97/03/31 05:21:39 > > Modified: sys/kern kern_prot.c > Log: > Make setgroups(0, xxx) behave as it does on SYSV, namely clear the groups > vector except for the egid in groups[0]. There is a risk that programs > that come from SYSV/Linux that expect this to work and don't check for > error returns may accidently pass root's groups on to child processes. > > We now do what is least suprising (to non BSD programs/programmers) in > this scenario, and nothing is changed for programs written with BSD groups > rules in mind. I changed it to the way it was to avoid a panic in the NFS code (which can't deal with a no-groups situation). Did you revert this fix, or does this do something different so as to avoid the NFS panic? -DG David Greenman Core-team/Principal Architect, The FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703311354.FAA09559>