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:
commit
1c1083345b
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue