git.iko.soy/typeable/nixpkgs
on master help sign in
grsecurity: work around #19698

This is a temporary work-around to fix using grsecurity on NixOS with the new kernelPackages/kernelPatches machinery. For whatever reason, when `security.grsecurity.enable = true`, the grsec patch ends up being applied twice, causing the kernel build to fail. Until the root cause of this is identified, we hack around it by simply pruning duplicate patches in the grsec kernel builder. Closes #19698

commit6d1bf921fa8bc9049e88ec6e49834192f7b79aa5 authorJoachim Fasting <joachifm@fastmail.fm> dateSun 23 Oct 2016, 18:15 (10 years ago) parent2406387
1 file changed+1−1
pkgs/build-support/grsecurity/default.nix+1−1
pkgs/build-support/grsecurity/default.nix+1−1
@@ -21,7 +21,7 @@ assert (kernel.version == grsecPatch.kver);
2121
2222overrideDerivation (kernel.override {
2323 inherit modDirVersion;
24− kernelPatches = [ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []);
24+ kernelPatches = lib.unique ([ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []));
2525 extraConfig = ''
2626 GRKERNSEC y
2727 PAX y