MCPcopy Create free account
hub / github.com/F-Stack/f-stack / audit_shutdown

Function audit_shutdown

freebsd/security/audit/audit.c:399–404  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

397 * drain before returning, which could lead to lost records on shutdown.
398 */
399void
400audit_shutdown(void *arg, int howto)
401{
402
403 audit_rotate_vnode(NULL, NULL);
404}
405
406/*
407 * Return the current thread's audit record, if any.

Callers 1

sys_auditonFunction · 0.85

Calls 1

audit_rotate_vnodeFunction · 0.85

Tested by

no test coverage detected