Changeset View
Changeset View
Standalone View
Standalone View
sys/security/audit/audit.c
Show First 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | audit_init(void) | ||||
/* Register shutdown handler. */ | /* Register shutdown handler. */ | ||||
EVENTHANDLER_REGISTER(shutdown_pre_sync, audit_shutdown, NULL, | EVENTHANDLER_REGISTER(shutdown_pre_sync, audit_shutdown, NULL, | ||||
SHUTDOWN_PRI_FIRST); | SHUTDOWN_PRI_FIRST); | ||||
/* Start audit worker thread. */ | /* Start audit worker thread. */ | ||||
audit_worker_init(); | audit_worker_init(); | ||||
} | } | ||||
SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL); | SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init); | ||||
/* | /* | ||||
* Drain the audit queue and close the log at shutdown. Note that this can | * 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 | * be called both from the system shutdown path and also from audit | ||||
* configuration syscalls, so 'arg' and 'howto' are ignored. | * 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 | * 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. | * drain before returning, which could lead to lost records on shutdown. | ||||
▲ Show 20 Lines • Show All 447 Lines • Show Last 20 Lines |