[1267] in Release_Engineering
Re: NGROUPS in param.h
raeburn@ATHENA.MIT.EDU (raeburn@ATHENA.MIT.EDU)
Wed Jun 28 15:59:09 1989
No, with NFS, the u area doesn't change. It contains a pointer to a
credentials structure. The credentials structure (also defined in
h/user.h) contains NGROUPS+5 u_short values (ref count, real and
effective uid and gid, group list), so perhaps (1<<N)-5 would be a
better choice for a limit on NGROUPS to improve memory allocation.
I don't believe there are very many programs that need to know the
size of the credentials structure. I would expect rpc.mountd and nfsc
to perhaps be among those few that might. I doubt there's anything in
the kernel code that expects NGROUPS to be a multiple of two, either,
but of course it should be checked.