linux_grsec_nixos: use the "modinst arg list too long" patch

An alternative to e38b74ba89d3d03e01ee751131d2a6dc316ac33a; see
f19c961b4e for details

(cherry picked from commit 1915f6908a)
This commit is contained in:
Joachim Fasting
2016-11-27 21:40:03 +01:00
parent ce812ca9dc
commit 88c8ffd250

View File

@@ -11434,8 +11434,10 @@ in
linux_grsec_nixos = callPackage ../build-support/grsecurity {
inherit (lib) overrideDerivation;
kernel = callPackage ../os-specific/linux/kernel/linux-grsecurity.nix {
kernelPatches = with self.kernelPatches; [ bridge_stp_helper ]
++ lib.optionals ((platform.kernelArch or null) == "mips")
kernelPatches = with self.kernelPatches; [
bridge_stp_helper
modinst_arg_list_too_long
] ++ lib.optionals ((platform.kernelArch or null) == "mips")
[ kernelPatches.mips_fpureg_emu
kernelPatches.mips_fpu_sigill
kernelPatches.mips_ext3_n32