Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2005 13:16:46 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Hartmut Brandt <harti@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/rpc.lockd kern.c
Message-ID:  <20051117131533.H77687@fledge.watson.org>
In-Reply-To: <200511171219.jAHCJJw6079767@repoman.freebsd.org>
References:  <200511171219.jAHCJJw6079767@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, 17 Nov 2005, Hartmut Brandt wrote:

> harti       2005-11-17 12:19:19 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    usr.sbin/rpc.lockd   kern.c
>  Log:
>  When a user is in more than 16 groups the call to authunix_create() will
>  result in abort() beeing called. This is because there is a limit of
>  the number of groups in the RPC which is 16. When the actual number of
>  groups is too large it results in xdr_array() returning an error which,
>  in turn, authunix_create() handles by just calling abort().
>
>  Fix this by passing only the first 16 groups to authunix_create().

It might be nice to add a comment to params.h by the definition of 
MAXGROUPS pointing at this and any other known gotchas.  We've had a 
number of requests to support significantly extended groups in FreeBSD, 
and I did some initial hacking on variable length group storage for 
credentials but didn't bring it to completion.  If this is something 
you're interested in looking at though, I'm happy to spread the pain :-).

Robert N M Watson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051117131533.H77687>