summaryrefslogtreecommitdiff
path: root/sys-kernel/cairn-sources/files/5.10.8/hardened-patches/0003-disable-HARDENED_USERCOPY_FALLBACK-by-default.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/cairn-sources/files/5.10.8/hardened-patches/0003-disable-HARDENED_USERCOPY_FALLBACK-by-default.patch')
-rw-r--r--sys-kernel/cairn-sources/files/5.10.8/hardened-patches/0003-disable-HARDENED_USERCOPY_FALLBACK-by-default.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/cairn-sources/files/5.10.8/hardened-patches/0003-disable-HARDENED_USERCOPY_FALLBACK-by-default.patch b/sys-kernel/cairn-sources/files/5.10.8/hardened-patches/0003-disable-HARDENED_USERCOPY_FALLBACK-by-default.patch
new file mode 100644
index 000000000000..0f0d48e1c4ee
--- /dev/null
+++ b/sys-kernel/cairn-sources/files/5.10.8/hardened-patches/0003-disable-HARDENED_USERCOPY_FALLBACK-by-default.patch
@@ -0,0 +1,24 @@
+From b724844617ce60088b629364d6473657de350d86 Mon Sep 17 00:00:00 2001
+From: Daniel Micay <danielmicay@gmail.com>
+Date: Thu, 26 Apr 2018 02:01:26 -0400
+Subject: [PATCH 003/113] disable HARDENED_USERCOPY_FALLBACK by default
+
+---
+ security/Kconfig | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/security/Kconfig b/security/Kconfig
+index 9446ddf40974..5c388f7fe09d 100644
+--- a/security/Kconfig
++++ b/security/Kconfig
+@@ -167,7 +167,6 @@ config HARDENED_USERCOPY
+ config HARDENED_USERCOPY_FALLBACK
+ bool "Allow usercopy whitelist violations to fallback to object size"
+ depends on HARDENED_USERCOPY
+- default y
+ help
+ This is a temporary option that allows missing usercopy whitelists
+ to be discovered via a WARN() to the kernel log, instead of
+--
+2.30.0
+