3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #7058 from joachifm/sysctl-kptr-restrict

nixos: condition sysctl.kptr_restrict on features.grsecurity
This commit is contained in:
Austin Seipp 2015-04-03 04:13:19 -05:00
commit 1c1083345b

View file

@ -64,6 +64,6 @@ in
#
# Removed under grsecurity.
boot.kernel.sysctl."kernel.kptr_restrict" =
if config.security.grsecurity.enable then null else 1;
if (config.boot.kernelPackages.kernel.features.grsecurity or false) then null else 1;
};
}