grsecurity: fix features.grsecurity
Previously, features.grsecurity wasn't actually set due to a bug in the grsec builder. We now rely on the generic kernel builder to set features from kernelPatches.
This commit is contained in:
parent
b56f7acc78
commit
e5c3a52afc
@ -20,8 +20,7 @@ assert (kernel.version == grsecPatch.kver);
|
|||||||
|
|
||||||
overrideDerivation (kernel.override {
|
overrideDerivation (kernel.override {
|
||||||
inherit modDirVersion;
|
inherit modDirVersion;
|
||||||
kernelPatches = [ { inherit (grsecPatch) name patch; } ] ++ kernelPatches ++ (kernel.kernelPatches or []);
|
kernelPatches = [ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []);
|
||||||
features = (kernel.features or {}) // { grsecurity = true; };
|
|
||||||
inherit extraConfig;
|
inherit extraConfig;
|
||||||
ignoreConfigErrors = true;
|
ignoreConfigErrors = true;
|
||||||
}) (attrs: {
|
}) (attrs: {
|
||||||
|
@ -31,6 +31,8 @@ let
|
|||||||
url = "https://raw.githubusercontent.com/slashbeast/grsecurity-scrape/master/${grbranch}/${name}.patch";
|
url = "https://raw.githubusercontent.com/slashbeast/grsecurity-scrape/master/${grbranch}/${name}.patch";
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
features.grsecurity = true;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user