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

Andrew Morton
2004-02-20T05:30:20Z

Tim Hockin <thockin@sun.com> 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??