mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
linuxPackages: hardened-config: check kernelArch, not system
(cherry picked from commit c345761c13)
This commit is contained in:
committed by
Joachim Fasting
parent
ec00da8d10
commit
e8af562d48
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user