aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c63
1 files changed, 22 insertions, 41 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index b240e2cb86fc..3e0bbee549ea 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -67,12 +67,6 @@ extern int printk_ratelimit_jiffies;
67extern int printk_ratelimit_burst; 67extern int printk_ratelimit_burst;
68extern int pid_max_min, pid_max_max; 68extern int pid_max_min, pid_max_max;
69 69
70#ifdef CONFIG_INOTIFY
71extern int inotify_max_user_devices;
72extern int inotify_max_user_watches;
73extern int inotify_max_queued_events;
74#endif
75
76#if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) 70#if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86)
77int unknown_nmi_panic; 71int unknown_nmi_panic;
78extern int proc_unknown_nmi_panic(ctl_table *, int, struct file *, 72extern int proc_unknown_nmi_panic(ctl_table *, int, struct file *,
@@ -120,6 +114,7 @@ extern int unaligned_enabled;
120extern int sysctl_ieee_emulation_warnings; 114extern int sysctl_ieee_emulation_warnings;
121#endif 115#endif
122extern int sysctl_userprocess_debug; 116extern int sysctl_userprocess_debug;
117extern int spin_retry;
123#endif 118#endif
124 119
125extern int sysctl_hz_timer; 120extern int sysctl_hz_timer;
@@ -152,6 +147,9 @@ extern ctl_table random_table[];
152#ifdef CONFIG_UNIX98_PTYS 147#ifdef CONFIG_UNIX98_PTYS
153extern ctl_table pty_table[]; 148extern ctl_table pty_table[];
154#endif 149#endif
150#ifdef CONFIG_INOTIFY
151extern ctl_table inotify_table[];
152#endif
155 153
156#ifdef HAVE_ARCH_PICK_MMAP_LAYOUT 154#ifdef HAVE_ARCH_PICK_MMAP_LAYOUT
157int sysctl_legacy_va_layout; 155int sysctl_legacy_va_layout;
@@ -650,7 +648,16 @@ static ctl_table kern_table[] = {
650 .mode = 0644, 648 .mode = 0644,
651 .proc_handler = &proc_dointvec, 649 .proc_handler = &proc_dointvec,
652 }, 650 },
653 651#if defined(CONFIG_ARCH_S390)
652 {
653 .ctl_name = KERN_SPIN_RETRY,
654 .procname = "spin_retry",
655 .data = &spin_retry,
656 .maxlen = sizeof (int),
657 .mode = 0644,
658 .proc_handler = &proc_dointvec,
659 },
660#endif
654 { .ctl_name = 0 } 661 { .ctl_name = 0 }
655}; 662};
656 663
@@ -957,6 +964,14 @@ static ctl_table fs_table[] = {
957 .mode = 0644, 964 .mode = 0644,
958 .proc_handler = &proc_dointvec, 965 .proc_handler = &proc_dointvec,
959 }, 966 },
967#ifdef CONFIG_INOTIFY
968 {
969 .ctl_name = FS_INOTIFY,
970 .procname = "inotify",
971 .mode = 0555,
972 .child = inotify_table,
973 },
974#endif
960#endif 975#endif
961 { 976 {
962 .ctl_name = KERN_SETUID_DUMPABLE, 977 .ctl_name = KERN_SETUID_DUMPABLE,
@@ -966,40 +981,6 @@ static ctl_table fs_table[] = {
966 .mode = 0644, 981 .mode = 0644,
967 .proc_handler = &proc_dointvec, 982 .proc_handler = &proc_dointvec,
968 }, 983 },
969#ifdef CONFIG_INOTIFY
970 {
971 .ctl_name = INOTIFY_MAX_USER_DEVICES,
972 .procname = "max_user_devices",
973 .data = &inotify_max_user_devices,
974 .maxlen = sizeof(int),
975 .mode = 0644,
976 .proc_handler = &proc_dointvec_minmax,
977 .strategy = &sysctl_intvec,
978 .extra1 = &zero,
979 },
980
981 {
982 .ctl_name = INOTIFY_MAX_USER_WATCHES,
983 .procname = "max_user_watches",
984 .data = &inotify_max_user_watches,
985 .maxlen = sizeof(int),
986 .mode = 0644,
987 .proc_handler = &proc_dointvec_minmax,
988 .strategy = &sysctl_intvec,
989 .extra1 = &zero,
990 },
991
992 {
993 .ctl_name = INOTIFY_MAX_QUEUED_EVENTS,
994 .procname = "max_queued_events",
995 .data = &inotify_max_queued_events,
996 .maxlen = sizeof(int),
997 .mode = 0644,
998 .proc_handler = &proc_dointvec_minmax,
999 .strategy = &sysctl_intvec,
1000 .extra1 = &zero
1001 },
1002#endif
1003 { .ctl_name = 0 } 984 { .ctl_name = 0 }
1004}; 985};
1005 986