summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorJoel Granados <joel.granados@kernel.org>2025-06-27 10:00:51 +0200
committerJoel Granados <joel.granados@kernel.org>2025-07-23 11:56:02 +0200
commit25ebbce1f188aa2d3e83fcfcf24da8610362564b (patch)
tree803c906d5a3dd5aa0c1639dd4e4a53f09e6bbeb5 /kernel/sysctl.c
parent88eddb0502d45680efef870ea470a9e8955c5c8b (diff)
kernel/sys.c: Move overflow{uid,gid} sysctl into kernel/sys.c
Moved ctl_tables elements for overflowuid and overflowgid into in kernel/sys.c. Create a register function that keeps them under "kernel" and run it after core with postcore_initcall. This is part of a greater effort to move ctl tables into their respective subsystems which will reduce the merge conflicts in kernel/sysctl.c. Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 2df63b69edf6f..21b70443aea75 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1476,24 +1476,6 @@ static const struct ctl_table kern_table[] = {
},
#endif
{
- .procname = "overflowuid",
- .data = &overflowuid,
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_minmax,
- .extra1 = SYSCTL_ZERO,
- .extra2 = SYSCTL_MAXOLDUID,
- },
- {
- .procname = "overflowgid",
- .data = &overflowgid,
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec_minmax,
- .extra1 = SYSCTL_ZERO,
- .extra2 = SYSCTL_MAXOLDUID,
- },
- {
.procname = "ngroups_max",
.data = (void *)&ngroups_max,
.maxlen = sizeof (int),