Commit ee82ddef authored by Ingo Molnar's avatar Ingo Molnar Committed by Juerg Haefliger

timer/debug: Change /proc/timer_list from 0444 to 0400

BugLink: https://bugs.launchpad.net/bugs/1811252

[ Upstream commit 8e7df2b5 ]

While it uses %pK, there's still few reasons to read this file
as non-root.
Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent b27c2523
...@@ -399,7 +399,7 @@ static int __init init_timer_list_procfs(void) ...@@ -399,7 +399,7 @@ static int __init init_timer_list_procfs(void)
{ {
struct proc_dir_entry *pe; 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) if (!pe)
return -ENOMEM; return -ENOMEM;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment