Skip to content

Commit

Permalink
linuxPackages: hardened-config: check kernelArch, not system
Browse files Browse the repository at this point in the history
  • Loading branch information
oxij authored and joachifm committed Sep 16, 2017
1 parent 616a7fe commit c345761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/kernel/hardened-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c345761

Please sign in to comment.