Sleep for one second after calling audit -t to give the audit daemon a
chance to actually terminate the audit service and exit. Otherwise, on an rc.d/auditd restart, the new audit daemon instance may try to start auditing while the previous session is still running. Likewise, this ensures a chance for auditd to terminate the audit trail at system shutdown. Perhaps more ideally, the script would wait synchronously for auditd to exit rather than for an arbitrary but short period of time. MFC after: 3 days Obtained from: TrustedBSD Project
This commit is contained in:
parent
e1bd11be7b
commit
9b2b93002d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162605
@ -25,6 +25,7 @@ auditd_stop()
|
||||
{
|
||||
|
||||
/usr/sbin/audit -t
|
||||
sleep 1
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
Loading…
Reference in New Issue
Block a user