Subject: Re: kern_prot.c, comment above sys_getegid()
To: Roland Illig <>
From: Eric Haszlakiewicz <>
List: tech-kern
Date: 11/03/2005 19:40:33
On Thu, Nov 03, 2005 at 12:14:12PM +0100, Roland Illig wrote:
> Is that comment correct?
> Where is the code that assures that p->p_ucred->cr_gid is always equal 
> to groups[0]?

	cr_gid is the current effective primary group.  It is NOT always equal
to groups[0].  (think setgid executables)
	btw, the only place crcmp appears to be used is in nfs_export.c.  I
don't know what that code is doing however.