Are the writing of an events records to audit.log atomic should a log rotation occur

Burn Alting burn at swtf.dyndns.org
Fri Feb 1 23:51:29 UTC 2013


All,

When rotating log files due a USR1 signal being sent, or for any other
reason, does auditd finish writing all the
records that belong to the current event being written before starting
the new log file?

That is, will I find records belonging to a single event in two log
files?

If this is the case, would there be problems if auditd was changed to
wait and 'flush' all an event's records before
rotating? One assumes auditd-event.c would need to be modified to be
more event aware. Perhaps make use of AUDIT_EOE or
other means of identifying the end of an event or a single event.

Thanks in advance

Burn Alting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20130202/aeb77a55/attachment.htm>


More information about the Linux-audit mailing list