The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] Fix overbroad /proc/timer_list file permissions
@ 2008-11-25 22:44 Joe Korty
  2008-11-25 23:14 ` [PATCH] Add per-cpu indexing to /proc/timer_list Joe Korty
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Korty @ 2008-11-25 22:44 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar; +Cc: linux-kernel

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@ccur.com>

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;


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

end of thread, other threads:[~2008-11-26 14:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25 22:44 [PATCH] Fix overbroad /proc/timer_list file permissions Joe Korty
2008-11-25 23:14 ` [PATCH] Add per-cpu indexing to /proc/timer_list Joe Korty
2008-11-26  4:50   ` Alexey Dobriyan
2008-11-26 14:39     ` Joe Korty

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