Re: PATCH: report NGROUPS_MAX via a sysctl (read-only)

From: Andrew Morton
Date: Fri Feb 20 2004 - 00:31:54 EST


Tim Hockin <thockin@xxxxxxx> wrote:
>
> Attached is a simple patch to expose NGROUPS_MAX via sysctl.

Why does userspace actually care? You try to do an oversized setgroups(),
so you get an error?

And why does NGROUPS_MAX still exist, come to that? AFAICT the only thing
it does is to prevent users from being able to allocate too much kernel
memory??

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