Skip to content

Commit 8e7df2b

Browse files
committed
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>
1 parent 516fb7f commit 8e7df2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/time/timer_list.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static int __init init_timer_list_procfs(void)
389389
{
390390
struct proc_dir_entry *pe;
391391

392-
pe = proc_create("timer_list", 0444, NULL, &timer_list_fops);
392+
pe = proc_create("timer_list", 0400, NULL, &timer_list_fops);
393393
if (!pe)
394394
return -ENOMEM;
395395
return 0;

0 commit comments

Comments
 (0)