public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix suid_dumpable and lease-break-time sysctls
@ 2009-03-27 13:31 Matthew Wilcox
  2009-03-28 19:22 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2009-03-27 13:31 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, linux-kernel, stable


Arne de Bruijn points out in Bugzilla 12953 that commit
76fdbb25f963de5dc1e308325f0578a2f92b1c2d mistakenly limits
lease-break-time instead of suid_dumpable.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c5ef44f..7755ae7 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -95,12 +95,9 @@ static int sixty = 60;
 static int neg_one = -1;
 #endif
 
-#if defined(CONFIG_MMU) && defined(CONFIG_FILE_LOCKING)
-static int two = 2;
-#endif
-
 static int zero;
 static int one = 1;
+static int two = 2;
 static unsigned long one_ul = 1;
 static int one_hundred = 100;
 
@@ -1373,10 +1370,7 @@ static struct ctl_table fs_table[] = {
 		.data		= &lease_break_time,
 		.maxlen		= sizeof(int),
 		.mode		= 0644,
-		.proc_handler	= &proc_dointvec_minmax,
-		.strategy	= &sysctl_intvec,
-		.extra1		= &zero,
-		.extra2		= &two,
+		.proc_handler	= &proc_dointvec,
 	},
 #endif
 #ifdef CONFIG_AIO
@@ -1417,7 +1411,10 @@ static struct ctl_table fs_table[] = {
 		.data		= &suid_dumpable,
 		.maxlen		= sizeof(int),
 		.mode		= 0644,
-		.proc_handler	= &proc_dointvec,
+		.proc_handler	= &proc_dointvec_minmax,
+		.strategy	= &sysctl_intvec,
+		.extra1		= &zero,
+		.extra2		= &two,
 	},
 #if defined(CONFIG_BINFMT_MISC) || defined(CONFIG_BINFMT_MISC_MODULE)
 	{

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix suid_dumpable and lease-break-time sysctls
  2009-03-27 13:31 [PATCH] Fix suid_dumpable and lease-break-time sysctls Matthew Wilcox
@ 2009-03-28 19:22 ` Andrew Morton
  2009-03-28 19:24   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2009-03-28 19:22 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: Linus Torvalds, linux-kernel, stable, Arne de Bruijn

On Fri, 27 Mar 2009 07:31:39 -0600 Matthew Wilcox <matthew@wil.cx> wrote:

> Arne de Bruijn points out in Bugzilla 12953 that commit
> 76fdbb25f963de5dc1e308325f0578a2f92b1c2d mistakenly limits
> lease-break-time instead of suid_dumpable.
> 
> Signed-off-by: Matthew Wilcox <matthew@wil.cx>

It would be nice to include the

Reported-by: Arne de Bruijn <kernelbt@arbruijn.dds.nl>

And to cc the reporter, please.

Also, please include the bugzilla URL
(http://bugzilla.kernel.org/show_bug.cgi?id=12953) in the changelog. 
Sometimes people will go through the commit logs closing off bugzilla
reports for us, and this makes their task simpler.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix suid_dumpable and lease-break-time sysctls
  2009-03-28 19:22 ` Andrew Morton
@ 2009-03-28 19:24   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2009-03-28 19:24 UTC (permalink / raw)
  To: Matthew Wilcox, Linus Torvalds, linux-kernel, stable,
	Arne de Bruijn

On Sat, 28 Mar 2009 12:22:54 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:

> > Arne de Bruijn points out in Bugzilla 12953 that commit
> > 76fdbb25f963de5dc1e308325f0578a2f92b1c2d mistakenly limits
> > lease-break-time instead of suid_dumpable.
> > 
> > Signed-off-by: Matthew Wilcox <matthew@wil.cx>
> 
> It would be nice to include the
> 
> Reported-by: Arne de Bruijn <kernelbt@arbruijn.dds.nl>
> 
> And to cc the reporter, please.
> 
> Also, please include the bugzilla URL
> (http://bugzilla.kernel.org/show_bug.cgi?id=12953) in the changelog. 
> Sometimes people will go through the commit logs closing off bugzilla
> reports for us, and this makes their task simpler.
> 

err, OK, minor reading comprehension problems there.  I need a nap.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-28 19:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-27 13:31 [PATCH] Fix suid_dumpable and lease-break-time sysctls Matthew Wilcox
2009-03-28 19:22 ` Andrew Morton
2009-03-28 19:24   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox