diff options
author | pjd <pjd@FreeBSD.org> | 2012-11-30 22:52:35 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-11-30 22:52:35 +0000 |
commit | 75d79c7880e44b5c09f71850d50a47d72afbe0a0 (patch) | |
tree | 56c38a8296cb46214f314d20bd59fb05612113fc | |
parent | a3ce94291cc5ba559da782316aba369a6975d6af (diff) | |
download | FreeBSD-src-75d79c7880e44b5c09f71850d50a47d72afbe0a0.zip FreeBSD-src-75d79c7880e44b5c09f71850d50a47d72afbe0a0.tar.gz |
IFp4 @208381:
For VOP_GETATTR() we just need vnode to be shared-locked.
Sponsored by: FreeBSD Foundation (auditdistd)
MFC after: 2 weeks
-rw-r--r-- | sys/security/audit/audit_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit_worker.c b/sys/security/audit/audit_worker.c index d21ae18..6247e49 100644 --- a/sys/security/audit/audit_worker.c +++ b/sys/security/audit/audit_worker.c @@ -133,7 +133,7 @@ audit_record_write(struct vnode *vp, struct ucred *cred, void *data, error = VFS_STATFS(vp->v_mount, mnt_stat); if (error) goto fail; - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); + vn_lock(vp, LK_SHARED | LK_RETRY); error = VOP_GETATTR(vp, &vattr, cred); VOP_UNLOCK(vp, 0); if (error) |