From owner-cvs-src-old@FreeBSD.ORG Thu Oct 30 23:09:30 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF57B10657C2 for ; Thu, 30 Oct 2008 23:09:30 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DC25B8FC1B for ; Thu, 30 Oct 2008 23:09:30 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9UN9UhW030070 for ; Thu, 30 Oct 2008 23:09:30 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9UN9U1l030069 for cvs-src-old@freebsd.org; Thu, 30 Oct 2008 23:09:30 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200810302309.m9UN9U1l030069@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Thu, 30 Oct 2008 23:09:19 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/security/audit audit_pipe.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 23:09:31 -0000 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