From 6a5a5728ee8225e0e7272de7ad6c63ca5986cb84 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 29 Apr 2017 22:46:20 +0200 Subject: [PATCH] nixos/hardened profile: lock kernel modules --- nixos/modules/profiles/hardened.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/profiles/hardened.nix b/nixos/modules/profiles/hardened.nix index a01d974446be..ae0a42e8dee1 100644 --- a/nixos/modules/profiles/hardened.nix +++ b/nixos/modules/profiles/hardened.nix @@ -8,6 +8,8 @@ with lib; { security.hideProcessInformation = mkDefault true; + security.lockKernelModules = mkDefault true; + security.apparmor.enable = mkDefault true; boot.kernelParams = [