From: tip-bot for Amerigo Wang <amwang@redhat.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
arjan@linux.intel.com, penberg@cs.helsinki.fi,
vegard.nossum@gmail.com, mpm@selenic.com,
eduard.munteanu@linux360.ro, amwang@redhat.com,
tglx@linutronix.de, rientjes@google.com, mingo@elte.hu,
cl@linux-foundation.org
Subject: [tip:timers/urgent] timers: Drop write permission on /proc/timer_list
Date: Mon, 17 Aug 2009 09:51:36 GMT [thread overview]
Message-ID: <tip-de809347aeef0a68c04576c464414d0e4dce59fc@git.kernel.org> (raw)
In-Reply-To: <20090817094525.6355.88682.sendpatchset@localhost.localdomain>
Commit-ID: de809347aeef0a68c04576c464414d0e4dce59fc
Gitweb: http://git.kernel.org/tip/de809347aeef0a68c04576c464414d0e4dce59fc
Author: Amerigo Wang <amwang@redhat.com>
AuthorDate: Mon, 17 Aug 2009 05:43:01 -0400
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Mon, 17 Aug 2009 11:47:31 +0200
timers: Drop write permission on /proc/timer_list
/proc/timer_list and /proc/slabinfo are not supposed to be
written, so there should be no write permissions on it.
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Vegard Nossum <vegard.nossum@gmail.com>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Cc: linux-mm@kvack.org
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Amerigo Wang <amwang@redhat.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>
LKML-Reference: <20090817094525.6355.88682.sendpatchset@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/time/timer_list.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
index a999b92..fddd69d 100644
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -286,7 +286,7 @@ static int __init init_timer_list_procfs(void)
{
struct proc_dir_entry *pe;
- pe = proc_create("timer_list", 0644, NULL, &timer_list_fops);
+ pe = proc_create("timer_list", 0444, NULL, &timer_list_fops);
if (!pe)
return -ENOMEM;
return 0;
prev parent reply other threads:[~2009-08-17 9:53 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-17 9:43 [Patch] proc: drop write permission on 'timer_list' and 'slabinfo' Amerigo Wang
2009-08-17 9:43 ` Amerigo Wang
2009-08-17 9:48 ` Ingo Molnar
2009-08-17 9:48 ` Ingo Molnar
2009-08-17 9:54 ` Pekka Enberg
2009-08-17 9:54 ` Pekka Enberg
2009-08-17 16:29 ` Christoph Lameter
2009-08-17 16:29 ` Christoph Lameter
2009-08-17 16:35 ` Pekka Enberg
2009-08-17 16:35 ` Pekka Enberg
2009-08-17 16:41 ` Christoph Lameter
2009-08-17 16:41 ` Christoph Lameter
2009-08-18 1:59 ` Amerigo Wang
2009-08-18 1:59 ` Li Zefan
2009-08-18 1:59 ` Li Zefan
2009-08-18 3:08 ` Amerigo Wang
2009-08-18 12:00 ` Wu Fengguang
2009-08-18 12:00 ` Wu Fengguang
2009-08-19 2:36 ` Amerigo Wang
2009-08-19 2:36 ` Amerigo Wang
2009-08-19 2:37 ` Wu Fengguang
2009-08-19 2:37 ` Wu Fengguang
2009-08-19 10:39 ` Amerigo Wang
2009-08-19 18:47 ` Pekka Enberg
2009-08-19 18:47 ` Pekka Enberg
2009-08-20 10:34 ` Amerigo Wang
2009-08-20 10:34 ` Amerigo Wang
2009-08-18 16:12 ` Pekka Enberg
2009-08-18 16:12 ` Pekka Enberg
2009-08-17 9:51 ` tip-bot for Amerigo Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-de809347aeef0a68c04576c464414d0e4dce59fc@git.kernel.org \
--to=amwang@redhat.com \
--cc=arjan@linux.intel.com \
--cc=cl@linux-foundation.org \
--cc=eduard.munteanu@linux360.ro \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=mpm@selenic.com \
--cc=penberg@cs.helsinki.fi \
--cc=rientjes@google.com \
--cc=tglx@linutronix.de \
--cc=vegard.nossum@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.