From 6de92271befed4702de577891ccbc2b628ea6411 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 17 Dec 2024 22:36:28 +0100 Subject: [PATCH] linux/common-config: don't set DEVKMEM on aarch64 The option never existed on aarch64. --- pkgs/os-specific/linux/kernel/common-config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 1dd648a1aa5c4..9c9594e2f1693 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -750,7 +750,7 @@ let # This does not have any effect if a program does not support it SECURITY_LANDLOCK = whenAtLeast "5.13" yes; - DEVKMEM = whenOlder "5.13" no; # Disable /dev/kmem + DEVKMEM = lib.mkIf (!stdenv.hostPlatform.isAarch64) (whenOlder "5.13" no); # Disable /dev/kmem USER_NS = yes; # Support for user namespaces