freebsd-skq/sys/security/audit
csjp 03cdec7669 Make sure that the termid type is initialized to AU_IPv4 by default.
This makes sure that process tokens credentials with un-initialized
audit contexts are handled correctly.  Currently, when invariants are
enabled, this change fixes a panic by ensuring that we have a valid
termid family.  Also, this fixes token generation for process tokens
making sure that userspace is always getting a valid token.

This is consistent with what Solaris does when an audit context is
un-initialized.

Obtained from:	TrustedBSD Project
MFC after:	1 week
2008-01-28 17:33:46 +00:00
..
audit_arg.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
audit_bsm_klib.c vn_lock() is currently only used with the 'curthread' passed as argument. 2008-01-10 01:10:58 +00:00
audit_bsm_token.c - Add audit_arg_audinfo_addr() for auditing the arguments for setaudit_addr(2) 2007-06-27 17:01:15 +00:00
audit_bsm.c Fix gratuitous whitespace bug 2008-01-18 19:57:21 +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 Change "audit_pipe_preselect" to "audit_pipe_presel" to make it print 2007-12-25 13:23:19 +00:00
audit_private.h Clean up audit comments--formatting, spelling, etc. 2007-06-01 21:58:59 +00:00
audit_syscalls.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
audit_trigger.c Close a very narrow race that might cause a trigger allocation to be 2007-06-13 21:17:23 +00:00
audit_worker.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
audit.c Make sure that the termid type is initialized to AU_IPv4 by default. 2008-01-28 17:33:46 +00:00
audit.h Implement AUE_CORE, which adds process core dump support into the kernel. 2007-10-26 01:23:07 +00:00