summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2017-09-15 21:07:42 +0000
committerJoachim Fasting <joachifm@fastmail.fm>2017-09-16 13:14:04 +0200
commitc345761c13aa47e66704a788a4ec2b995b0ac587 (patch)
tree6a6d12ac67b5ab50beb97cf55ebf9fc1c76af8e0 /pkgs/os-specific
parent616a7fe23791dafcffda580757dd463576290619 (diff)
downloadnixlib-c345761c13aa47e66704a788a4ec2b995b0ac587.tar
nixlib-c345761c13aa47e66704a788a4ec2b995b0ac587.tar.gz
nixlib-c345761c13aa47e66704a788a4ec2b995b0ac587.tar.bz2
nixlib-c345761c13aa47e66704a788a4ec2b995b0ac587.tar.lz
nixlib-c345761c13aa47e66704a788a4ec2b995b0ac587.tar.xz
nixlib-c345761c13aa47e66704a788a4ec2b995b0ac587.tar.zst
nixlib-c345761c13aa47e66704a788a4ec2b995b0ac587.zip
linuxPackages: hardened-config: check kernelArch, not system
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/kernel/hardened-config.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/hardened-config.nix b/pkgs/os-specific/linux/kernel/hardened-config.nix
index a8bbf4eba15f..6c3d3c419086 100644
--- a/pkgs/os-specific/linux/kernel/hardened-config.nix
+++ b/pkgs/os-specific/linux/kernel/hardened-config.nix
@@ -22,7 +22,7 @@ ${optionalString (versionAtLeast version "4.10") ''
   BUG_ON_DATA_CORRUPTION y
 ''}
 
-${optionalString (stdenv.system == "x86_64-linux") ''
+${optionalString (stdenv.platform.kernelArch == "x86_64") ''
   DEFAULT_MMAP_MIN_ADDR 65536 # Prevent allocation of first 64K of memory
 
   # Reduce attack surface by disabling various emulations