[PATCH] Fix overbroad /proc/timer_list file permissions

From: Joe Korty
Date: Tue Nov 25 2008 - 17:45:11 EST


Fix overbroad file permissions on /proc/timer_list.

/proc/timer_list has 0644 permissions, this should be 0444.

Signed-off-by: Joe Korty <joe.korty@xxxxxxxx>

Index: 2.6.28-rc6/kernel/time/timer_list.c
===================================================================
--- 2.6.28-rc6.orig/kernel/time/timer_list.c 2008-11-25 17:32:46.000000000 -0500
+++ 2.6.28-rc6/kernel/time/timer_list.c 2008-11-25 17:33:16.000000000 -0500
@@ -286,7 +286,7 @@
{
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;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/