rwatson 2009-02-25 13:21:28 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
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
184.108.40.206 +28 -15 src/sys/security/audit/audit_pipe.c