freebsd-dev/sys/security/audit
Christian S.J. Peron f07b836981 Correct a slight regression which was introduced with the implementation of
audit pipes. If the kernel record was not selected for the trail or the pipe,
any user supplied record attached to it would be tossed away, resulting in
otherwise selected events being lost.

- Introduce two new masks: AR_PRESELECT_USER_TRAIL AR_PRESELECT_USER_PIPE,
  currently we have AR_PRESELECT_TRAIL and AR_PRESELECT_PIPE, which tells
  the audit worker that we are interested in the kernel record, with
  the additional masks we can determine if either the pipe or trail is
  interested in seeing the kernel or user record.

- In audit(2), we unconditionally set the AR_PRESELECT_USER_TRAIL and
  AR_PRESELECT_USER_PIPE masks under the assumption that userspace has
  done the preselection [1].

Currently, there is work being done that allows the kernel to parse and
preselect user supplied records, so in the future preselection could occur
in either layer. But there is still a few details to work out here.

[1] At some point we need to teach au_preselect(3) about the interests of
    all the individual audit pipes.

This is a RELENG_6 candidate.

Reviewed by:	rwatson
Obtained from:	TrustedBSD Project
MFC after:	1 week
2006-09-17 17:52:57 +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 Audit the argv and env vectors passed in on exec: 2006-09-01 11:45:40 +00:00
audit_bsm.c Add AUE_SYSARCH to the list of audit events during BSM conversion to prevent 2006-09-17 11:42: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 Correct a slight regression which was introduced with the implementation of 2006-09-17 17:52:57 +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