git.iko.soy/typeable/nixpkgs
on master help sign in
grsecurity module: remove requiredKernelConfig

Using a custom package set with the NixOS module is no longer something I wish to support. It's still *possible* but not advertised. Secondly, the requiredKernelConfig didn't really do anything (setting kernelPackages to a non-grsec kernel would just silently let the user boot into a non-grsec setup ...).

commit98935c7103927690b4ca366a2763140081615794 authorJoachim Fasting <joachifm@fastmail.fm> dateSun 20 Nov 2016, 21:54 (10 years ago) parent5ad8a56
2 files changed+3−15
nixos/modules/security/grsecurity.nix−10 nixos/modules/security/grsecurity.xml+3−5
nixos/modules/security/grsecurity.nix−10
@@ -65,20 +65,10 @@ in
6565
6666 config = mkIf cfg.enable {
6767
68− # Allow the user to select a different package set, subject to the stated
69− # required kernel config
7068 boot.kernelPackages = mkDefault pkgs.linuxPackages_grsec_nixos;
7169
7270 boot.kernelParams = optional cfg.disableEfiRuntimeServices "noefi";
7371
74− system.requiredKernelConfig = with config.lib.kernelConfig;
75− [ (isEnabled "GRKERNSEC")
76− (isEnabled "PAX")
77− (isYes "GRKERNSEC_SYSCTL")
78− (isYes "GRKERNSEC_SYSCTL_DISTRO")
79− (isNo "GRKERNSEC_NO_RBAC")
80− ];
81−
8272 nixpkgs.config.grsecurity = true;
8373
8474 # Install PaX related utillities into the system profile.
nixos/modules/security/grsecurity.xml+3−5
@@ -225,11 +225,9 @@
225225 </para>
226226
227227 <para>
228− The NixOS module makes several assumptions about the kernel and so may be
229− incompatible with your customised kernel. Most of these assumptions are
230− encoded as assertions &#x2014; mismatches should ideally result in a build
231− failure. Currently, the only way to work around incompatibilities is to
232− eschew the NixOS module and do all configuration yourself.
228+ The NixOS module makes several assumptions about the kernel and so
229+ may be incompatible with your customised kernel. Currently, the only way
230+ to work around incompatibilities is to eschew the NixOS module.
233231 </para>
234232
235233 </sect1>