freebsd-dev/sys/security/audit
Robert Watson 22b7bca620 Rework the way errors are handled with respect to how audit records are
written to the audit trail file:

- audit_record_write() now returns void, and all file system specific
  error handling occurs inside this function.  This pushes error handling
  complexity out of the record demux routine that hands off to both the
  trail and audit pipes, and makes trail behavior more consistent with
  pipes as a record destination.

- Rate limit kernel printfs associated with running low on space.  Rate
  limit audit triggers for low space.  Rate limit printfs for fail stop
  events.  Rate limit audit worker write error printfs.

- Document in detail the types of limits and space checks we perform, and
  combine common cases.

This improves the audit subsystems tolerance to low space conditions by
avoiding toasting the console with printfs are waking up the audit daemon
continuously.

MFC after:	3 days
Obtained from:	TrustedBSD Project
2006-09-24 13:35:58 +00:00
..
audit_arg.c Audit the argv and env vectors passed in on exec: 2006-09-01 11:45:40 +00:00
audit_bsm_klib.c Introduce support for per-audit pipe preselection independent from the 2006-06-05 14:48:17 +00:00
audit_bsm_token.c Add missing white space in au_to_exec_{args,env}(). 2006-09-20 13:14:47 +00:00
audit_bsm.c Rather than allocating all buffer memory for the completed BSM record 2006-09-20 13:23:40 +00:00
audit_ioctl.h Allow the user process to query the kernel's notion of a maximum 2006-08-26 17:59:31 +00:00
audit_pipe.c Allow the user process to query the kernel's notion of a maximum 2006-08-26 17:59:31 +00:00
audit_private.h Correct a slight regression which was introduced with the implementation of 2006-09-17 17:52:57 +00:00
audit_syscalls.c Correct a slight regression which was introduced with the implementation of 2006-09-17 17:52:57 +00:00
audit_trigger.c Prefer C to C++ comments per style(9). 2006-06-08 21:55:39 +00:00
audit_worker.c Rework the way errors are handled with respect to how audit records are 2006-09-24 13:35:58 +00:00
audit.c Correct a slight regression which was introduced with the implementation of 2006-09-17 17:52:57 +00:00
audit.h White space cleanup, no functional change. 2006-09-04 06:06:23 +00:00