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.
commit6eea9ac8683a393f55d270490c91a6f0c2af4fc0
authorJoachim Fasting <joachifm@fastmail.fm>
dateSun 6 Jan 2019, 19:26 (8 years ago)
parenteebd1a9
pkgs/os-specific/linux/kernel/generic.nix+1
@@ -62,6 +62,7 @@ let
6262 netfilterRPFilter = true;
6363 grsecurity = false;
6464 xen_dom0 = false;
65+ ia32Emulation = true;
6566 } // features) kernelPatches;
6667
6768 intermediateNixConfig = import ./common-config.nix {
pkgs/top-level/all-packages.nix+1
@@ -14825,6 +14825,7 @@ in
1482514825
1482614826 # Hardened linux
1482714827 hardenedLinuxPackagesFor = kernel: linuxPackagesFor (kernel.override {
14828+ features.ia32Emulation = false;
1482814829 extraConfig = import ../os-specific/linux/kernel/hardened-config.nix {
1482914830 inherit stdenv;
1483014831 inherit (kernel) version;