freebsd-skq/sys/security
Konstantin Belousov 27725229dc Busy the mount point which is the owner of the audit vnode, around
audit_record_write().  This is important so that VFS_STATFS() is not
done on the NULL or freed mp and the check for free space is
consistent with the vnode used for write.

Add vn_start_write() braces around VOP_FSYNC() calls on the audit vnode.

Move repeated code to fsync vnode and panic to the helper
audit_worker_sync_vp().

Reviewed by:	rwatson
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2016-01-16 10:06:33 +00:00
..
audit Busy the mount point which is the owner of the audit vnode, around 2016-01-16 10:06:33 +00:00
mac Fix style issues around existing SDT probes. 2015-12-16 23:39:27 +00:00
mac_biba
mac_bsdextended
mac_ifoff
mac_lomac cred: add proc_set_cred helper 2015-03-16 00:10:03 +00:00
mac_mls
mac_none
mac_partition
mac_portacl
mac_seeotheruids
mac_stub
mac_test