audit module: only enable service if kernel has audit (#19569)
This commit is contained in:
parent
267c7a299c
commit
d91365d714
|
@ -104,7 +104,11 @@ in {
|
||||||
description = "Kernel Auditing";
|
description = "Kernel Auditing";
|
||||||
wantedBy = [ "basic.target" ];
|
wantedBy = [ "basic.target" ];
|
||||||
|
|
||||||
unitConfig.ConditionVirtualization = "!container";
|
unitConfig = {
|
||||||
|
ConditionVirtualization = "!container";
|
||||||
|
ConditionSecurity = [ "audit" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
path = [ pkgs.audit ];
|
path = [ pkgs.audit ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue