tree-wide: remove uses of features.grsecurity

This commit is contained in:
Joachim Fasting
2017-05-14 15:08:51 +02:00
parent f7580a1f06
commit e6c65ecb12
8 changed files with 4 additions and 15 deletions
+1 -4
View File
@@ -60,10 +60,7 @@ in
# Hide kernel pointers (e.g. in /proc/modules) for unprivileged
# users as these make it easier to exploit kernel vulnerabilities.
#
# Removed under grsecurity.
boot.kernel.sysctl."kernel.kptr_restrict" =
if (config.boot.kernelPackages.kernel.features.grsecurity or false) then null else 1;
boot.kernel.sysctl."kernel.kptr_restrict" = 1;
# Disable YAMA by default to allow easy debugging.
boot.kernel.sysctl."kernel.yama.ptrace_scope" = mkDefault 0;