freebsd-dev/sys/security/audit
Robert Watson cff9c52e23 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.

MFC after:	2 months
Sponsored by:	Apple, Inc.
2008-11-01 21:56:45 +00:00
..
audit_arg.c Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
audit_bsm_klib.c Protect the event->class lookup database using an rwlock instead of a 2008-10-30 17:47:57 +00:00
audit_bsm_token.c Further synchronization of copyrights, licenses, white space, etc from 2008-07-31 09:54:35 +00:00
audit_bsm.c More fully audit fexecve(2) and its arguments. 2008-08-25 13:50:01 +00:00
audit_ioctl.h Don't expose #ifdef NOTYET parts to userspace via audit_ioctl.h, just 2007-04-29 16:20:32 +00:00
audit_pipe.c We only allow a partial read of the first record in an audit pipe 2008-11-01 21:56:45 +00:00
audit_private.h Further synchronization of copyrights, licenses, white space, etc from 2008-07-31 09:54:35 +00:00
audit_syscalls.c Unbreak the build. 2008-09-04 13:06:36 +00:00
audit_trigger.c Generally avoid <space><tab> as a white space anomoly. 2008-07-22 16:44:48 +00:00
audit_worker.c Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
audit.c Make sure we check the preselection masks present for all audit pipes. 2008-08-11 20:14:56 +00:00
audit.h Further synchronization of copyrights, licenses, white space, etc from 2008-07-31 09:54:35 +00:00