1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/sys/security/audit
Konstantin Belousov d8b0556c6d Adapt vfs kqfilter to the shared vnode lock used by zfs write vop. Use
vnode interlock to protect the knote fields [1]. The locking assumes
that shared vnode lock is held, thus we get exclusive access to knote
either by exclusive vnode lock protection, or by shared vnode lock +
vnode interlock.

Do not use kl_locked() method to assert either lock ownership or the
fact that curthread does not own the lock. For shared locks, ownership
is not recorded, e.g. VOP_ISLOCKED can return LK_SHARED for the shared
lock not owned by curthread, causing false positives in kqueue subsystem
assertions about knlist lock.

Remove kl_locked method from knlist lock vector, and add two separate
assertion methods kl_assert_locked and kl_assert_unlocked, that are
supposed to use proper asserts. Change knlist_init accordingly.

Add convenience function knlist_init_mtx to reduce number of arguments
for typical knlist initialization.

Submitted by:	jhb [1]
Noted by:	jhb [2]
Reviewed by:	jhb
Tested by:	rnoland
2009-06-10 20:59:32 +00:00
..
audit_arg.c
audit_bsm_domain.c Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit_bsm_errno.c Merge OpenBSM 1.1 beta 1 from OpenBSM vendor branch to head, both 2009-03-02 13:29:18 +00:00
audit_bsm_fcntl.c Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit_bsm_klib.c Change various routines that are responsible for transforming audit 2009-02-08 14:39:35 +00:00
audit_bsm_socket_type.c Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both 2009-01-14 10:44:16 +00:00
audit_bsm_token.c Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit_bsm.c Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit_ioctl.h
audit_pipe.c Adapt vfs kqfilter to the shared vnode lock used by zfs write vop. Use 2009-06-10 20:59:32 +00:00
audit_private.h Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit_syscalls.c Move "options MAC" from opt_mac.h to opt_global.h, as it's now in GENERIC 2009-06-05 14:55:22 +00:00
audit_trigger.c
audit_worker.c Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
audit.c Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: 2009-04-19 14:53:17 +00:00
audit.h Add a new thread-private flag, TDP_AUDITREC, to indicate whether or 2009-03-09 10:45:58 +00:00