aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c904748f2290..f0664bd5011c 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -76,6 +76,7 @@ extern int pid_max_min, pid_max_max;
76extern int sysctl_drop_caches; 76extern int sysctl_drop_caches;
77extern int percpu_pagelist_fraction; 77extern int percpu_pagelist_fraction;
78extern int compat_log; 78extern int compat_log;
79extern int maps_protect;
79 80
80/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ 81/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
81static int maxolduid = 65535; 82static int maxolduid = 65535;
@@ -603,6 +604,16 @@ static ctl_table kern_table[] = {
603 .proc_handler = &proc_dointvec, 604 .proc_handler = &proc_dointvec,
604 }, 605 },
605#endif 606#endif
607#ifdef CONFIG_PROC_FS
608 {
609 .ctl_name = CTL_UNNUMBERED,
610 .procname = "maps_protect",
611 .data = &maps_protect,
612 .maxlen = sizeof(int),
613 .mode = 0644,
614 .proc_handler = &proc_dointvec,
615 },
616#endif
606 617
607 { .ctl_name = 0 } 618 { .ctl_name = 0 }
608}; 619};