docs: sysctl/kernel: document ngroups_max
Subsystems (3)
PATCH 1/1 docs: sysctl/kernel: document ngroups_max
This is a read-only export of NGROUPS_MAX, so this patch also changes the declarations in kernel/sysctl.c to const.
Signed-off-by Stephen Kitt <[email protected]>
--- Documentation/admin-guide/sysctl/kernel.rst | 9 +++++++++ kernel/sysctl.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysctl/kernel.rst +9 -0
@@ -459,6 +459,15 @@ Notes: successful IPC object allocation. If an IPC object allocation syscall fails, it is undefined if the value remains unmodified or is reset to -1. + +ngroups_max +=========== + +Maximum number of supplementary groups, _i.e._ the maximum size which +``setgroups`` will accept. Exports ``NGROUPS_MAX`` from the kernel. + + + nmi_watchdog ============
kernel/sysctl.c +2 -2
@@ -146,7 +146,7 @@ static unsigned long dirty_bytes_min = 2 * PAGE_SIZE;static int maxolduid =65535 ;static int minolduid; -static int ngroups_max =NGROUPS_MAX ; +static const int ngroups_max =NGROUPS_MAX ;static const int cap_last_cap =CAP_LAST_CAP ;/*
@@ -883,7 +883,7 @@ static struct ctl_table kern_table[] = {#endif { .procname = "ngroups_max", - .data = &ngroups_max, + .data = (void *)&ngroups_max, .maxlen = sizeof (int), .mode = 0444, .proc_handler = proc_dointvec,
base-commit: 1ae7efb388540adc1653a51a3bc3b2c9cef5ec1a
Signature · 1 line
2.20.1
Quoted 4 lines · Stephen Kitt
This is a read-only export of
NGROUPS_MAX, so this patch also changes the declarations inkernel/sysctl.cto const.Signed-off-by Stephen Kitt <[email protected]>
Reviewed-by Kees Cook <[email protected]>
Signature · 1 line
Kees Cook
Quoted 14 lines · On Fri, 15 May 2020 18:02:22 +0200 Stephen Kitt <[email protected]> wrote:
This is a read-only export of
NGROUPS_MAX, so this patch also changes the declarations inkernel/sysctl.cto const.Signed-off-by Stephen Kitt <[email protected]>--- Documentation/admin-guide/sysctl/kernel.rst | 9 +++++++++ kernel/sysctl.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-)Documentation/admin-guide/sysctl/kernel.rst +0
-0
Documentation/admin-guide/sysctl/kernel.rst Notes: · line 467
Quoted 9 lines
Documentation/admin-guide/sysctl/kernel.rst +6
-0@@ -459,6 +459,15 @@ Notes: successful IPC object allocation. If an IPC object allocation syscall fails, it is undefined if the value remains unmodified or is reset to -1. + +ngroups_max +=========== + +Maximum number of supplementary groups, _i.e._ the maximum size which +``setgroups`` will accept. Exports ``NGROUPS_MAX`` from the kernel.
Applied, thanks.
jon