Skip to content

Commit fdb1b5e

Browse files
author
Jonathan Corbet
committed
Revert "docs: sysctl/kernel: document ngroups_max"
This reverts commit 2f4c330. The changes here were fine, but there's a non-documentation change to sysctl.c that makes messes elsewhere; those changes should have been done independently. Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 95ca6d7 commit fdb1b5e

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Documentation/admin-guide/sysctl/kernel.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -517,15 +517,6 @@ Notes:
517517
successful IPC object allocation. If an IPC object allocation syscall
518518
fails, it is undefined if the value remains unmodified or is reset to -1.
519519

520-
521-
ngroups_max
522-
===========
523-
524-
Maximum number of supplementary groups, _i.e._ the maximum size which
525-
``setgroups`` will accept. Exports ``NGROUPS_MAX`` from the kernel.
526-
527-
528-
529520
nmi_watchdog
530521
============
531522

kernel/sysctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static unsigned long dirty_bytes_min = 2 * PAGE_SIZE;
146146
static int maxolduid = 65535;
147147
static int minolduid;
148148

149-
static const int ngroups_max = NGROUPS_MAX;
149+
static int ngroups_max = NGROUPS_MAX;
150150
static const int cap_last_cap = CAP_LAST_CAP;
151151

152152
/*
@@ -883,7 +883,7 @@ static struct ctl_table kern_table[] = {
883883
#endif
884884
{
885885
.procname = "ngroups_max",
886-
.data = (void *)&ngroups_max,
886+
.data = &ngroups_max,
887887
.maxlen = sizeof (int),
888888
.mode = 0444,
889889
.proc_handler = proc_dointvec,

0 commit comments

Comments
 (0)