grsecurity: make GRKERNSEC y and PAX y implicit
These options should always be specified. Note, an implication of this
change is that not specifying any grsec/PaX options results in a build
failure.
commit1bb7b44cd7970780170f1c4bb4bba8d91f5e06d7
authorJoachim Fasting <joachifm@fastmail.fm>
dateSun 2 Oct 2016, 18:30 (10 years ago)
parenta58f5ff
nixos/modules/security/grsecurity.xml−2
@@ -208,8 +208,6 @@
208208 let
209209 kernel = pkgs.linux_grsec_nixos.override {
210210 extraConfig = ''
211− GRKERNSEC y
212− PAX y
213211 GRKERNSEC_CONFIG_AUTO y
214212 GRKERNSEC_CONFIG_SERVER y
215213 GRKERNSEC_CONFIG_SECURITY y
pkgs/build-support/grsecurity/default.nix+5−1
@@ -22,7 +22,11 @@ assert (kernel.version == grsecPatch.kver);
2222overrideDerivation (kernel.override {
2323 inherit modDirVersion;
2424 kernelPatches = [ grsecPatch ] ++ kernelPatches ++ (kernel.kernelPatches or []);
25− inherit extraConfig;
25+ extraConfig = ''
26+ GRKERNSEC y
27+ PAX y
28+ ${extraConfig}
29+ '';
2630 ignoreConfigErrors = true;
2731}) (attrs: {
2832 nativeBuildInputs = (lib.chooseDevOutputs [ gmp libmpc mpfr ]) ++ (attrs.nativeBuildInputs or []);
pkgs/os-specific/linux/kernel/grsecurity-nixos-config.nix−3
@@ -3,9 +3,6 @@
33with stdenv.lib;
44
55''
6−GRKERNSEC y
7−PAX y
8−
96GRKERNSEC_CONFIG_AUTO y
107GRKERNSEC_CONFIG_DESKTOP y
118GRKERNSEC_CONFIG_VIRT_HOST y
pkgs/top-level/all-packages.nix−2
@@ -10955,8 +10955,6 @@ in
1095510955 # An unsupported grsec xen guest kernel
1095610956 linux_grsec_server_xen = linux_grsec_nixos.override {
1095710957 extraConfig = ''
10958− GRKERNSEC y
10959− PAX y
1096010958 GRKERNSEC_CONFIG_AUTO y
1096110959 GRKERNSEC_CONFIG_PRIORITY_SECURITY y
1096210960 GRKERNSEC_CONFIG_SERVER y