linux: add feature flag to indicate support for 32bit emulation

Motivated by the need to warn users trying to build configurations that depend
on being able to run 32bit apps on 64bit kernels.
This commit is contained in:
Joachim Fasting 2019-01-06 19:26:08 +01:00
parent eebd1a9263
commit 6eea9ac868
No known key found for this signature in database
GPG key ID: 5C204DF675C90294
2 changed files with 2 additions and 0 deletions

View file

@ -62,6 +62,7 @@ let
netfilterRPFilter = true;
grsecurity = false;
xen_dom0 = false;
ia32Emulation = true;
} // features) kernelPatches;
intermediateNixConfig = import ./common-config.nix {

View file

@ -14825,6 +14825,7 @@ in
# Hardened linux
hardenedLinuxPackagesFor = kernel: linuxPackagesFor (kernel.override {
features.ia32Emulation = false;
extraConfig = import ../os-specific/linux/kernel/hardened-config.nix {
inherit stdenv;
inherit (kernel) version;