grsecurity: Fix build under new generic kernel derivation
This commit is contained in:
parent
c373a49b10
commit
fd896d09fa
@ -6557,11 +6557,6 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
grsecurityOverrider = args: {
|
grsecurityOverrider = args: {
|
||||||
# Install gcc plugins. These are needed for compiling dependant packages.
|
|
||||||
postInstall = ''
|
|
||||||
${args.postInstall or ""}
|
|
||||||
cp "tools/gcc/"*.so $out/lib/modules/$version/build/tools/gcc/
|
|
||||||
'';
|
|
||||||
# Apparently as of gcc 4.6, gcc-plugin headers (which are needed by PaX plugins)
|
# Apparently as of gcc 4.6, gcc-plugin headers (which are needed by PaX plugins)
|
||||||
# include libgmp headers, so we need these extra tweaks
|
# include libgmp headers, so we need these extra tweaks
|
||||||
buildInputs = args.buildInputs ++ [ gmp ];
|
buildInputs = args.buildInputs ++ [ gmp ];
|
||||||
@ -6577,10 +6572,12 @@ let
|
|||||||
# config options you need (e.g. by overriding extraConfig). See list of options here:
|
# config options you need (e.g. by overriding extraConfig). See list of options here:
|
||||||
# https://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options
|
# https://en.wikibooks.org/wiki/Grsecurity/Appendix/Grsecurity_and_PaX_Configuration_Options
|
||||||
linux_3_2_grsecurity = lowPrio (lib.overrideDerivation (linux_3_2.override (args: {
|
linux_3_2_grsecurity = lowPrio (lib.overrideDerivation (linux_3_2.override (args: {
|
||||||
|
modDirVersion = "${linux_3_2.version}-grsec";
|
||||||
kernelPatches = args.kernelPatches ++ [ kernelPatches.grsecurity_3_0_3_2_53 kernelPatches.grsec_path ];
|
kernelPatches = args.kernelPatches ++ [ kernelPatches.grsecurity_3_0_3_2_53 kernelPatches.grsec_path ];
|
||||||
})) (args: grsecurityOverrider args));
|
})) (args: grsecurityOverrider args));
|
||||||
|
|
||||||
linux_3_12_grsecurity = lowPrio (lib.overrideDerivation (linux_3_12.override (args: {
|
linux_3_12_grsecurity = lowPrio (lib.overrideDerivation (linux_3_12.override (args: {
|
||||||
|
modDirVersion = "${linux_3_12.version}-grsec";
|
||||||
kernelPatches = args.kernelPatches ++ [ kernelPatches.grsecurity_3_0_3_12_2 kernelPatches.grsec_path ];
|
kernelPatches = args.kernelPatches ++ [ kernelPatches.grsecurity_3_0_3_12_2 kernelPatches.grsec_path ];
|
||||||
})) (args: grsecurityOverrider args));
|
})) (args: grsecurityOverrider args));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user