aboutsummaryrefslogtreecommitdiff
path: root/kernel/time/timer_list.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-11-13 07:15:41 +0100
committerMoyster <oysterized@gmail.com>2017-12-01 17:38:08 +0100
commit8a780f578b97d76eaa11b74fb8f644a569bf1529 (patch)
treec412c6769144e3f5072f68d0b7ebe644c102e8de /kernel/time/timer_list.c
parentf91d04bc072c6fcc3dcea26c785251658f91da35 (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>
Diffstat (limited to 'kernel/time/timer_list.c')
-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 f6a104349..4838ad708 100644
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -352,7 +352,7 @@ static int __init init_timer_list_procfs(void)
{
struct proc_dir_entry *pe;
- pe = proc_create("timer_list", 0444, NULL, &timer_list_fops);
+ pe = proc_create("timer_list", 0400, NULL, &timer_list_fops);
if (!pe)
return -ENOMEM;
return 0;