mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
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";
|
||||
wantedBy = [ "basic.target" ];
|
||||
|
||||
unitConfig.ConditionVirtualization = "!container";
|
||||
unitConfig = {
|
||||
ConditionVirtualization = "!container";
|
||||
ConditionSecurity = [ "audit" ];
|
||||
};
|
||||
|
||||
|
||||
path = [ pkgs.audit ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user