Skip to content

Commit ad59cf9

Browse files
authored
Change dependency from Requires to Wants for audit-rules.service (#397)
Replaced `Requires=audit-rules.service` with `Wants=audit-rules.service` in auditd.service to align with behavior from audit v4.0 and earlier. This modification ensures that if `audit-rules.service` fails to load rules into the kernel, `auditd` will not be forced to exit. This change preserves backward compatibility and prevents potential disruptions caused by issues in rule loading.
1 parent ba1d8be commit ad59cf9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

init.d/auditd.service.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ ConditionKernelCommandLine=!audit=0
44
ConditionKernelCommandLine=!audit=off
55
DefaultDependencies=no
66

7-
## The following is a "Requires" so that if rules don't load, it will
8-
## also fail loading the main service to be sure to get your attention.
9-
Requires=audit-rules.service
7+
## The following is a "Wants" so that if rules don't load, it will
8+
## not fail starting the main service. This indicates a weaker dependency.
9+
Wants=audit-rules.service
1010

1111
## If auditd is sending or receiving remote logging, copy this file to
1212
## /etc/systemd/system/auditd.service and comment out the first After and

0 commit comments

Comments
 (0)