teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

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

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