aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmerigo Wang <[email protected]>2009-08-17 05:43:01 -0400
committerIngo Molnar <[email protected]>2009-08-17 11:47:31 +0200
commitde809347aeef0a68c04576c464414d0e4dce59fc (patch)
treee3f05312abaabe0bcda04b6e8e220374c20cf292
parentb2add73dbf93fd50f00564d7abc3e2b9aa9dd20c (diff)
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 <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: Vegard Nossum <[email protected]> Cc: Eduard - Gabriel Munteanu <[email protected]> Cc: [email protected] Cc: Christoph Lameter <[email protected]> Cc: David Rientjes <[email protected]> Cc: Amerigo Wang <[email protected]> Cc: Matt Mackall <[email protected]> Cc: Arjan van de Ven <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--kernel/time/timer_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
index a999b92a1277..fddd69d16e03 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;