audit module: only enable service if kernel has audit (#19569)

This commit is contained in:
Alexander Ried
2016-10-15 16:03:41 +02:00
committed by Franz Pletz
parent 267c7a299c
commit d91365d714
+5 -1
View File
@@ -104,7 +104,11 @@ in {
description = "Kernel Auditing";
wantedBy = [ "basic.target" ];
unitConfig.ConditionVirtualization = "!container";
unitConfig = {
ConditionVirtualization = "!container";
ConditionSecurity = [ "audit" ];
};
path = [ pkgs.audit ];