Declare the kern.ngroups sysctl to be read-only, but tunable at boot for

better error reporting.

Submitted by:	Matthew Fleming <matthew dot fleming at isilon dot com>
MFC After:	1 month
This commit is contained in:
Brooks Davis 2010-01-12 18:20:20 +00:00
parent d49bbd73ff
commit 93833c1db6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202163

View File

@ -124,7 +124,7 @@ SYSCTL_INT(_kern, KERN_ARGMAX, argmax, CTLFLAG_RD,
SYSCTL_INT(_kern, KERN_POSIX1, posix1version, CTLFLAG_RD,
0, _POSIX_VERSION, "Version of POSIX attempting to comply to");
SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RD,
SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RDTUN,
&ngroups_max, 0,
"Maximum number of supplemental groups a user can belong to");