aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2009-04-02 19:58:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-02 22:05:01 -0400
commit8e654fba4a376f436bdfe361fc5cdbc87ac09b35 (patch)
tree849159802c4aec512a2d0671d88a04947c5165b2 /kernel/sysctl.c
parent303d379c54fc9ed553562e36c1cbd1791a3f5d17 (diff)
sysctl: fix suid_dumpable and lease-break-time sysctls
Arne de Bruijn points out that commit 76fdbb25f963de5dc1e308325f0578a2f92b1c2d ("coredump masking: bound suid_dumpable sysctl") mistakenly limits lease-break-time instead of suid_dumpable. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Reported-by: Arne de Bruijn <kernelbt@arbruijn.dds.nl> Cc: Kawai, Hidehiro <hidehiro.kawai.ez@hitachi.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 2e490a389dd2..5ec4543dfc06 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -95,12 +95,9 @@ static int sixty = 60;
95static int neg_one = -1; 95static int neg_one = -1;
96#endif 96#endif
97 97
98#if defined(CONFIG_MMU) && defined(CONFIG_FILE_LOCKING)
99static int two = 2;
100#endif
101
102static int zero; 98static int zero;
103static int one = 1; 99static int one = 1;
100static int two = 2;
104static unsigned long one_ul = 1; 101static unsigned long one_ul = 1;
105static int one_hundred = 100; 102static int one_hundred = 100;
106 103
@@ -1373,10 +1370,7 @@ static struct ctl_table fs_table[] = {
1373 .data = &lease_break_time, 1370 .data = &lease_break_time,
1374 .maxlen = sizeof(int), 1371 .maxlen = sizeof(int),
1375 .mode = 0644, 1372 .mode = 0644,
1376 .proc_handler = &proc_dointvec_minmax, 1373 .proc_handler = &proc_dointvec,
1377 .strategy = &sysctl_intvec,
1378 .extra1 = &zero,
1379 .extra2 = &two,
1380 }, 1374 },
1381#endif 1375#endif
1382#ifdef CONFIG_AIO 1376#ifdef CONFIG_AIO
@@ -1417,7 +1411,10 @@ static struct ctl_table fs_table[] = {
1417 .data = &suid_dumpable, 1411 .data = &suid_dumpable,
1418 .maxlen = sizeof(int), 1412 .maxlen = sizeof(int),
1419 .mode = 0644, 1413 .mode = 0644,
1420 .proc_handler = &proc_dointvec, 1414 .proc_handler = &proc_dointvec_minmax,
1415 .strategy = &sysctl_intvec,
1416 .extra1 = &zero,
1417 .extra2 = &two,
1421 }, 1418 },
1422#if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE) 1419#if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE)
1423 { 1420 {