git.iko.soy/typeable/nixpkgs
on master help sign in
grsecurity module: remove code pertaining to zfs

I don't know if it still the case that zfs fails to boot; either way, that's the user's responsibility to contend with.

commit2eb6ec1bc491b5a6ed7f6d5164ca6366f986da49 authorJoachim Fasting <joachifm@fastmail.fm> dateSun 20 Nov 2016, 22:10 (10 years ago) parent98935c7
1 file changed−14
nixos/modules/security/grsecurity.nix−14
nixos/modules/security/grsecurity.nix−14
@@ -6,14 +6,6 @@ let
66 cfg = config.security.grsecurity;
77 grsecLockPath = "/proc/sys/kernel/grsecurity/grsec_lock";
88
9− # Ascertain whether ZFS is required for booting the system; grsecurity is
10− # currently incompatible with ZFS, rendering the system unbootable.
11− zfsNeededForBoot = filter
12− (fs: (fs.neededForBoot
13− || elem fs.mountPoint [ "/" "/nix" "/nix/store" "/var" "/var/log" "/var/lib" "/etc" ])
14− && fs.fsType == "zfs")
15− config.system.build.fileSystems != [];
16−
179 # Ascertain whether NixOS container support is required
1810 containerSupportRequired =
1911 config.boot.enableContainers && config.containers != {};
@@ -132,11 +124,5 @@ in
132124 "kernel.grsecurity.chroot_caps" = mkForce 0;
133125 };
134126
135− assertions = [
136− { assertion = !zfsNeededForBoot;
137− message = "grsecurity is currently incompatible with ZFS";
138− }
139− ];
140−
141127 };
142128}