mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Add an XXX comment regarding a bug I introduced when modifying the behavior
of audit log vnode rotation: on shutdown, we may not properly drain all pending records, which could lead to lost records during system shutdown.
This commit is contained in:
parent
ac14190e39
commit
4e95375678
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179517
@ -269,6 +269,9 @@ SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL);
|
||||
* Drain the audit queue and close the log at shutdown. Note that this can
|
||||
* be called both from the system shutdown path and also from audit
|
||||
* configuration syscalls, so 'arg' and 'howto' are ignored.
|
||||
*
|
||||
* XXXRW: In FreeBSD 7.x and 8.x, this fails to wait for the record queue to
|
||||
* drain before returning, which could lead to lost records on shutdown.
|
||||
*/
|
||||
void
|
||||
audit_shutdown(void *arg, int howto)
|
||||
|
Loading…
Reference in New Issue
Block a user