[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NGROUPS_MAX in linux 2.6.3+
From: |
Tim Hockin |
Subject: |
NGROUPS_MAX in linux 2.6.3+ |
Date: |
Thu, 19 Feb 2004 13:20:26 -0800 |
User-agent: |
Mutt/1.4.1i |
In linux 2.6.3, the value of NGROUPS_MAX has grown from 32 to 64k. I was
looking through glibc to make sure it is all going to work and I found two
things that concern me.
1. Linux does not have a way to report these "constants" to libc. It is a
constant for a given kernel, but not necessarily across kernels. I am going
to try to find a good way to do that. Watch for a patch, unless Linus tells
me to buzz off.
2. libc/sunrpc/svcauth_des.c creates a local array[NGROUPS]. NGROUPS is
defined in libc/sysdeps/unix/sysv/linux/sys/param.h to be NGROUPS_MAX (64k,
now). I know this won't blow up, but I don't think it is correct. I'm not
sure what the correct answer is, maybe have a fully dynamic grouplist or
maybe just have a different constant there. The kernel used a new constant
for RPC credentials.
--
Tim Hockin
Sun Microsystems, Linux Software Engineering
address@hidden
All opinions are my own, not Sun's
- NGROUPS_MAX in linux 2.6.3+,
Tim Hockin <=