freebsd-nq/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 Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
mac_bsdextended Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
mac_ifoff Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
mac_lomac cred: add proc_set_cred helper 2015-03-16 00:10:03 +00:00
mac_mls Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
mac_none
mac_partition
mac_portacl Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
mac_seeotheruids
mac_stub Remove AppleTalk support. 2014-03-14 06:29:43 +00:00
mac_test Remove AppleTalk support. 2014-03-14 06:29:43 +00:00