git.iko.soy/typeable/nixpkgs
on master help sign in
audit module: only enable service if kernel has audit (#19569)
commitd91365d71407ada863fa0f6d1b2406800b42df43 authorAlexander Ried <ried@mytum.de> dateSat 15 Oct 2016, 16:03 (10 years ago) parent267c7a2
1 file changed+5−1
nixos/modules/security/audit.nix+5−1
nixos/modules/security/audit.nix+5−1
@@ -104,7 +104,11 @@ in {
104104 description = "Kernel Auditing";
105105 wantedBy = [ "basic.target" ];
106106
107− unitConfig.ConditionVirtualization = "!container";
107+ unitConfig = {
108+ ConditionVirtualization = "!container";
109+ ConditionSecurity = [ "audit" ];
110+ };
111+
108112
109113 path = [ pkgs.audit ];
110114