linuxPackages: hardened-config: check kernelArch, not system
This commit is contained in:
parent
616a7fe237
commit
c345761c13
@ -22,7 +22,7 @@ ${optionalString (versionAtLeast version "4.10") ''
|
|||||||
BUG_ON_DATA_CORRUPTION y
|
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
|
DEFAULT_MMAP_MIN_ADDR 65536 # Prevent allocation of first 64K of memory
|
||||||
|
|
||||||
# Reduce attack surface by disabling various emulations
|
# Reduce attack surface by disabling various emulations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user