Date: Thu, 30 Oct 2008 23:09:19 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/security/audit audit_pipe.c Message-ID: <200810302309.m9UN9U1l030069@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2008-10-30 23:09:19 UTC FreeBSD src repository Modified files: sys/security/audit audit_pipe.c Log: SVN rev 184489 on 2008-10-30 23:09:19Z by rwatson When we drop an audit record going to and audit pipe because the audit pipe has overflowed, drop the newest, rather than oldest, record. This makes overflow drop behavior consistent with memory allocation failure leading to drop, avoids touching the consumer end of the queue from a producer, and lowers the CPU overhead of dropping a record by dropping before memory allocation and copying. Obtained from: Apple, Inc. MFC after: 2 months Revision Changes Path 1.20 +9 -13 src/sys/security/audit/audit_pipe.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810302309.m9UN9U1l030069>