Blame SOURCES/0290-set-kptr_restrict-1.patch

ddca0b
From cf1a9df1171273fc1ed3f977b5ec52aba27674bf Mon Sep 17 00:00:00 2001
ddca0b
From: David Tardon <dtardon@redhat.com>
ddca0b
Date: Tue, 3 Dec 2019 14:04:00 +0100
ddca0b
Subject: [PATCH] set kptr_restrict=1
ddca0b
ddca0b
Resolves: #1689346
ddca0b
---
ddca0b
 sysctl.d/50-default.conf | 3 +++
ddca0b
 1 file changed, 3 insertions(+)
ddca0b
ddca0b
diff --git a/sysctl.d/50-default.conf b/sysctl.d/50-default.conf
ddca0b
index e263cf0628..e0afc9c702 100644
ddca0b
--- a/sysctl.d/50-default.conf
ddca0b
+++ b/sysctl.d/50-default.conf
ddca0b
@@ -21,6 +21,9 @@ kernel.sysrq = 16
ddca0b
 # Append the PID to the core filename
ddca0b
 kernel.core_uses_pid = 1
ddca0b
 
ddca0b
+# https://bugzilla.redhat.com/show_bug.cgi?id=1689346
ddca0b
+kernel.kptr_restrict = 1
ddca0b
+
ddca0b
 # Source route verification
ddca0b
 net.ipv4.conf.all.rp_filter = 1
ddca0b