From 2248ca09a4c1466f695bb16d2988af8b9cd76a4c Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 12 Jan 2025 11:55:35 +0300 Subject: [PATCH] linux-hardened: condition LEGACY_VSYSCALL_NONE on x86 --- pkgs/os-specific/linux/kernel/hardened/config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/hardened/config.nix b/pkgs/os-specific/linux/kernel/hardened/config.nix index e04b6d878993..85c5fb47191c 100644 --- a/pkgs/os-specific/linux/kernel/hardened/config.nix +++ b/pkgs/os-specific/linux/kernel/hardened/config.nix @@ -109,5 +109,5 @@ assert (lib.versionAtLeast version "4.9"); IOMMU_DEFAULT_DMA_LAZY = option no; # not needed for less than a decade old glibc versions - LEGACY_VSYSCALL_NONE = yes; + LEGACY_VSYSCALL_NONE = lib.mkIf stdenv.hostPlatform.isx86 yes; }