aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-11-13 01:15:41 -0500
committerIngo Molnar <mingo@kernel.org>2017-11-13 10:04:06 -0500
commit8e7df2b5b7f245c9bd11064712db5cb69044a362 (patch)
tree17572b58b234ce5bafc7c22ce04af8c0258ed859
parent516fb7f2e73dcc303fb97fc3593209fcacf2d982 (diff)
timer/debug: Change /proc/timer_list from 0444 to 0400
While it uses %pK, there's still few reasons to read this file as non-root. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
-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 0e7f5428a148..0ed768b56c60 100644
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -389,7 +389,7 @@ static int __init init_timer_list_procfs(void)
389{ 389{
390 struct proc_dir_entry *pe; 390 struct proc_dir_entry *pe;
391 391
392 pe = proc_create("timer_list", 0444, NULL, &timer_list_fops); 392 pe = proc_create("timer_list", 0400, NULL, &timer_list_fops);
393 if (!pe) 393 if (!pe)
394 return -ENOMEM; 394 return -ENOMEM;
395 return 0; 395 return 0;