Re: NGROUPS_MAX

From: Alexander Viro (viro@math.psu.edu)
Date: Tue Oct 03 2000 - 17:03:51 EDT

  • Next message: Peter Enderborg: "Re: Update Linux 2.4 Status/TODO list"

    On Tue, 3 Oct 2000, Jeff Garzik wrote:

    > On Wed, 4 Oct 2000, Craig Whitmore wrote:
    > > I need to set up a server with a user that is in more than 32 groups at a time
    > > and as far as I know NGROUPS_MAX in limits.h changes this maximum.
    > > If I increase (say to 256) this will this break anything or will linux work perfectly
    > > well?
    >
    > I am interested in the answer too, though I suspect this belongs on the
    > glibc not linux-kernel list.
    >
    > Some ports of glibc have it as high as 256, but I don't think that port
    > is based on the Linux kernel.

    Secondary groups' array is a part of task_struct, so you are risking to
    eat too much space from the kernel stack (256 words is a fairly large
    chunk when taken out of 8Kb)

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Tue Oct 03 2000 - 17:04:59 EDT