[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#325465: Difference between sysconf(_SC_NGROUPS_MAX) and /proc/sys/kernel/ngroups_max

On Sun, Aug 28, 2005 at 11:54:45PM +0200, Thiemo Seufer wrote:
> Sylvain Beucler wrote:
> [snip]
> > stable's /usr/include/linux/limits.h has NGROUPS_MAX set to 32. In
> > testing and unstable it is set to 65536.
> > 
> > 
> > The usermod limitation happens in stable and testing (tested with
> > their respective default kernel), but not in unstable (tested with the
> > testing kernel - all tested kernels having ngroups_max=65536).
> The stable default kernel is 2.4.27 which is limited to 32 groups.

Ok, though "On the Intel x86 architecture a 2.6 kernel is also
available", cf. releases notes. I would expect the limitation to be
enforced by the choice of the kernel and not by the default kernel

As far as I understand, sysconf() should get the information at run
time. How comes that he returns 32 on a system that support 65536?



Reply to: