]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
timer/debug: Change /proc/timer_list from 0444 to 0400
authorIngo Molnar <mingo@kernel.org>
Mon, 13 Nov 2017 06:15:41 +0000 (07:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:11:30 +0000 (14:11 +0100)
[ Upstream commit 8e7df2b5b7f245c9bd11064712db5cb69044a362 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/time/timer_list.c

index ef4f16e81283dffe04434c6d5d83bbd83e71a84f..1407ed20ea93953210b3fe75a29ee928ca43fd71 100644 (file)
@@ -399,7 +399,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;