Skip to content

Commit de80934

Browse files
Amerigo WangIngo Molnar
authored andcommitted
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>
1 parent b2add73 commit de80934

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/time/timer_list.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static int __init init_timer_list_procfs(void)
286286
{
287287
struct proc_dir_entry *pe;
288288

289-
pe = proc_create("timer_list", 0644, NULL, &timer_list_fops);
289+
pe = proc_create("timer_list", 0444, NULL, &timer_list_fops);
290290
if (!pe)
291291
return -ENOMEM;
292292
return 0;

0 commit comments

Comments
 (0)