From 8f200e0e38b1adfaf15790a003e1488115805652 Mon Sep 17 00:00:00 2001 From: Brandon Weeks Date: Sun, 9 Jan 2022 21:34:42 -0800 Subject: [PATCH] linux: enable IO_STRICT_DEVMEM --- pkgs/os-specific/linux/kernel/common-config.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 667a682fba00..4e963133773e 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -456,7 +456,8 @@ let # Detect writes to read-only module pages DEBUG_SET_MODULE_RONX = { optional = true; tristate = whenOlder "4.11" "y"; }; RANDOMIZE_BASE = option yes; - STRICT_DEVMEM = option yes; # Filter access to /dev/mem + STRICT_DEVMEM = yes; # Filter access to /dev/mem + IO_STRICT_DEVMEM = whenAtLeast "4.5" yes; SECURITY_SELINUX_BOOTPARAM_VALUE = whenOlder "5.1" (freeform "0"); # Disable SELinux by default # Prevent processes from ptracing non-children processes SECURITY_YAMA = option yes;