cvs commit: src/sys/security/audit audit_pipe.c

[ Available lists | Index of cvs-src-old | Month of Feb 2009 | Week of 25 Feb 2009 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Robert Watson <rwatson@FreeBSD.org>
Date
25 Feb 2009 13:21:41
Subject
cvs commit: src/sys/security/audit audit_pipe.c
Message-ID
200902251321.n1PDLfLQ070232@repoman.freebsd.org


[ Hide this part ]
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


Elapsed time: 0.058 seconds