]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Busy the mount point which is the owner of the audit vnode, around
authorkib <kib@FreeBSD.org>
Sat, 16 Jan 2016 10:06:33 +0000 (10:06 +0000)
committerkib <kib@FreeBSD.org>
Sat, 16 Jan 2016 10:06:33 +0000 (10:06 +0000)
commit5c5d8c09acd7bbc84ca42b011222ef403d0cd1a7
tree85610e11e809f4c01fccb4dc204496c013dcc83f
parentb86d0142720eab206866233a5c1ae54a304f5545
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
sys/security/audit/audit_worker.c