From: Ingo Molnar Date: Mon, 13 Nov 2017 06:15:41 +0000 (+0100) Subject: timer/debug: Change /proc/timer_list from 0444 to 0400 X-Git-Tag: v4.14.90~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30c64b5a4f2b88de1c69fcc556eb4a1238ad5ac3;p=platform%2Fkernel%2Flinux-exynos.git timer/debug: Change /proc/timer_list from 0444 to 0400 [ Upstream commit 8e7df2b5b7f245c9bd11064712db5cb69044a362 ] While it uses %pK, there's still few reasons to read this file as non-root. Suggested-by: Linus Torvalds Acked-by: Thomas Gleixner Cc: Peter Zijlstra Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c index 0e7f542..0ed768b 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) { 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;