Subject: Re: increasing NGROUPS_MAX
To: Jan Schaumann <jschauma@netmeister.org>
From: Brian Ginsbach <ginsbach@NetBSD.org>
List: tech-userlevel
Date: 08/02/2005 21:43:50
--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Tue, Aug 02, 2005 at 01:33:07PM -0400, Jan Schaumann wrote:
> Hi,
>
> In order to increase the number of supplemental groups a user can be in,
> one needs to bump NGROUPS_MAX in the sources. This will require a
> rebuild of the kernel but also of the userland tools that use
> NGROUPS_MAX.
>
> This could be made less intrusive if the userland tools would use
> sysconf(_SC_NGROUPS_MAX) instead. Of course this means that all those
> tools that currently use static arrays initialized to NGROUPS_MAX + 1
> need to be redone dynamically...
>
Be aware that just changing NGROUPS_MAX could cause all sorts of
problems since this value is also used for NGROUPS. And NGROUPS
is used by things like RPC credentials (i.e. NFS) which doesn't
provide for any more than 16 simultaneous groups...
Any userland tools and library routines that initialize static arrays
to NGROUPS will also need to be redone dynamically.
Brian
--rwEMma7ioTxnRzrJ
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)
iQEVAwUBQu/pFn5pSroMVWZBAQKH4Af/V5JMv3RKiJ2WJC4B7Tvy39Vkdguwyota
J9Pg+rlUs3VWRO7qaXuRXkBdNClaenW+tvg811gVfqWqqd6eBl9cNpXmZ16Kqmd5
zR6s7fIGaB3WRZnd1JArTn5gwpCQ8O9lO9dm4r9l8VflHje/EJ4ZfF9+srHsUP1m
sXGf2fU870SN3ZJ9C6WEGbTjzM2owq9UJusurgk3/k8AAXAoRy9umuZ5IMS96Zk0
k1YqldhAEgFtbXcVWOuX3AMxbBHz7/C07UZyLYFkQrpFEh47MA1VYICg03MSqMMP
D8uY5neVMUDBGxtxbVOwOpfzIXgeOKV5hcnuUPi7kY7NRWwKqaI+PQ==
=WkK6
-----END PGP SIGNATURE-----
--rwEMma7ioTxnRzrJ--