linuxPackages: hardened-config: check kernelArch, not system

This commit is contained in:
Jan Malakhovski 2017-09-15 21:07:42 +00:00 committed by Joachim Fasting
parent 616a7fe237
commit c345761c13
No known key found for this signature in database
GPG Key ID: 66EAB6B14F6B6E0D

View File

@ -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