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