diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-07-19 17:49:39 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-07-19 17:49:39 -0400 |
commit | 39299d9d15c41cbdd7c7009967cd35afaf34d8fa (patch) | |
tree | 42a0c0408fcf76024eb6885a27d4f1ed0228abcf /kernel | |
parent | ce625a801664d8ed7344117bbb57510e4e0e872c (diff) | |
parent | f60f700876cd51de9de69f3a3c865d95e287a24d (diff) |
Merge with /shiny/git/linux-2.6/.git
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl.c | 51 |
1 files changed, 11 insertions, 40 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index b240e2cb86fc..e60b9c36f1f0 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -67,12 +67,6 @@ extern int printk_ratelimit_jiffies; | |||
67 | extern int printk_ratelimit_burst; | 67 | extern int printk_ratelimit_burst; |
68 | extern int pid_max_min, pid_max_max; | 68 | extern int pid_max_min, pid_max_max; |
69 | 69 | ||
70 | #ifdef CONFIG_INOTIFY | ||
71 | extern int inotify_max_user_devices; | ||
72 | extern int inotify_max_user_watches; | ||
73 | extern 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) |
77 | int unknown_nmi_panic; | 71 | int unknown_nmi_panic; |
78 | extern int proc_unknown_nmi_panic(ctl_table *, int, struct file *, | 72 | extern int proc_unknown_nmi_panic(ctl_table *, int, struct file *, |
@@ -152,6 +146,9 @@ extern ctl_table random_table[]; | |||
152 | #ifdef CONFIG_UNIX98_PTYS | 146 | #ifdef CONFIG_UNIX98_PTYS |
153 | extern ctl_table pty_table[]; | 147 | extern ctl_table pty_table[]; |
154 | #endif | 148 | #endif |
149 | #ifdef CONFIG_INOTIFY | ||
150 | extern ctl_table inotify_table[]; | ||
151 | #endif | ||
155 | 152 | ||
156 | #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT | 153 | #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT |
157 | int sysctl_legacy_va_layout; | 154 | int sysctl_legacy_va_layout; |
@@ -957,6 +954,14 @@ static ctl_table fs_table[] = { | |||
957 | .mode = 0644, | 954 | .mode = 0644, |
958 | .proc_handler = &proc_dointvec, | 955 | .proc_handler = &proc_dointvec, |
959 | }, | 956 | }, |
957 | #ifdef CONFIG_INOTIFY | ||
958 | { | ||
959 | .ctl_name = FS_INOTIFY, | ||
960 | .procname = "inotify", | ||
961 | .mode = 0555, | ||
962 | .child = inotify_table, | ||
963 | }, | ||
964 | #endif | ||
960 | #endif | 965 | #endif |
961 | { | 966 | { |
962 | .ctl_name = KERN_SETUID_DUMPABLE, | 967 | .ctl_name = KERN_SETUID_DUMPABLE, |
@@ -966,40 +971,6 @@ static ctl_table fs_table[] = { | |||
966 | .mode = 0644, | 971 | .mode = 0644, |
967 | .proc_handler = &proc_dointvec, | 972 | .proc_handler = &proc_dointvec, |
968 | }, | 973 | }, |
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 } | 974 | { .ctl_name = 0 } |
1004 | }; | 975 | }; |
1005 | 976 | ||