From owner-cvs-src-old@FreeBSD.ORG Wed Feb 25 13:21:41 2009 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 680CB1065705 for ; Wed, 25 Feb 2009 13:21:41 +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 54DF08FC1E for ; Wed, 25 Feb 2009 13:21:41 +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 n1PDLfCP070233 for ; Wed, 25 Feb 2009 13:21:41 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1PDLfLQ070232 for cvs-src-old@freebsd.org; Wed, 25 Feb 2009 13:21:41 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200902251321.n1PDLfLQ070232@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Wed, 25 Feb 2009 13:21:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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: Wed, 25 Feb 2009 13:21:42 -0000 rwatson 2009-02-25 13:21:28 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/security/audit audit_pipe.c Log: SVN rev 189035 on 2009-02-25 13:21:28Z by rwatson Merge r184536 from head to stable/7: We only allow a partial read of the first record in an audit pipe record queue, so move the offset field from the per-record audit_pipe_entry structure to the audit_pipe structure. Now that we support reading more than one record at a time, add a new summary field to audit_pipe, ap_qbyteslen, which tracks the total number of bytes present in a pipe, and return that (minus the current offset) via FIONREAD and kqueue's data variable for the pending byte count rather than the number of bytes remaining in only the first record. Add a number of asserts to confirm that these counts and offsets following the expected rules. Sponsored by: Apple, Inc. Revision Changes Path 1.11.2.11 +28 -15 src/sys/security/audit/audit_pipe.c