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

An alternative to e38b74ba89d3d03e01ee751131d2a6dc316ac33a; see
f19c961b4e for details
This commit is contained in:
Joachim Fasting 2016-11-27 21:40:03 +01:00
parent 4c7323545b
commit 1915f6908a
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

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