summaryrefslogtreecommitdiff
path: root/sys-kernel/cairn-sources/files/5.9.6/hardened-patches/0100-enable-INIT_ON_FREE_DEFAULT_ON-by-default.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/cairn-sources/files/5.9.6/hardened-patches/0100-enable-INIT_ON_FREE_DEFAULT_ON-by-default.patch')
-rw-r--r--sys-kernel/cairn-sources/files/5.9.6/hardened-patches/0100-enable-INIT_ON_FREE_DEFAULT_ON-by-default.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/cairn-sources/files/5.9.6/hardened-patches/0100-enable-INIT_ON_FREE_DEFAULT_ON-by-default.patch b/sys-kernel/cairn-sources/files/5.9.6/hardened-patches/0100-enable-INIT_ON_FREE_DEFAULT_ON-by-default.patch
new file mode 100644
index 000000000000..1102fd92b16b
--- /dev/null
+++ b/sys-kernel/cairn-sources/files/5.9.6/hardened-patches/0100-enable-INIT_ON_FREE_DEFAULT_ON-by-default.patch
@@ -0,0 +1,24 @@
+From 392418f3836e3c62d77c73e6f440dffd8a6011fe Mon Sep 17 00:00:00 2001
+From: Levente Polyak <levente@leventepolyak.net>
+Date: Thu, 19 Sep 2019 19:03:01 +0200
+Subject: [PATCH 100/108] enable INIT_ON_FREE_DEFAULT_ON by default
+
+---
+ security/Kconfig.hardening | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/security/Kconfig.hardening b/security/Kconfig.hardening
+index 7e3fe39ed6a4..7dede18f1074 100644
+--- a/security/Kconfig.hardening
++++ b/security/Kconfig.hardening
+@@ -203,6 +203,7 @@ config INIT_ON_ALLOC_DEFAULT_ON
+
+ config INIT_ON_FREE_DEFAULT_ON
+ bool "Enable heap memory zeroing on free by default"
++ default yes
+ help
+ This has the effect of setting "init_on_free=1" on the kernel
+ command line. This can be disabled with "init_on_free=0".
+--
+2.29.2
+