FreeBSD/sys/kern/kern_prot.c
/*
 * Copy groups in to a credential after expanding it if required.
 * Truncate the list to (ngroups_max + 1) if it is too large.
 */
Copy groups in to a credential after expanding it if required.
Truncate the list to (ngroups_max + 1) if it is too large.
Copy groups in to a credential after expanding it if required . Truncate the list to ( ngroups_max + 1 ) if it is too large .
void
crsetgroups(struct ucred *cr, int ngrp, gid_t *groups)
{
	if (ngrp > ngroups_max + 1)
		ngrp = ngroups_max + 1;
	crextend(cr, ngrp);
	crsetgroups_locked(cr, ngrp, groups);
}
void crsetgroups ( struct ucred * cr , int ngrp , gid_t * groups ) { if ( ngrp > ngroups_max + 1 ) ngrp = ngroups_max + 1 ; crextend ( cr , ngrp ) ; crsetgroups_locked ( cr , ngrp , groups ) ; }
Copy groups in to a credential after expanding it if required.
Copy groups in to a credential after expanding it if required .