]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
patches for 4.14
authorSasha Levin <sashal@kernel.org>
Tue, 18 Dec 2018 00:34:53 +0000 (19:34 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 18 Dec 2018 00:34:53 +0000 (19:34 -0500)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.14/series [new file with mode: 0644]
queue-4.14/timer-debug-change-proc-timer_list-from-0444-to-0400.patch [new file with mode: 0644]

diff --git a/queue-4.14/series b/queue-4.14/series
new file mode 100644 (file)
index 0000000..ee9ade5
--- /dev/null
@@ -0,0 +1 @@
+timer-debug-change-proc-timer_list-from-0444-to-0400.patch
diff --git a/queue-4.14/timer-debug-change-proc-timer_list-from-0444-to-0400.patch b/queue-4.14/timer-debug-change-proc-timer_list-from-0444-to-0400.patch
new file mode 100644 (file)
index 0000000..5b39355
--- /dev/null
@@ -0,0 +1,36 @@
+From af188b33b3c3726680e420775045bd2fba9882cd Mon Sep 17 00:00:00 2001
+From: Ingo Molnar <mingo@kernel.org>
+Date: Mon, 13 Nov 2017 07:15:41 +0100
+Subject: 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 <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 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
+index 0e7f5428a148..0ed768b56c60 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;
+-- 
+2.19.1
+