diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2011-01-18 14:34:45 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2011-01-18 14:34:45 +0000 |
commit | 9517b1a76d0699822b274d81da4432792c6c93d3 (patch) | |
tree | ea77ca082d7dfef432276c27ebfb86d4305d37c5 /sys/fs/nfs/nfs_commonsubs.c | |
parent | ca1b9616571dfc04ff0c49724ec95ef357ff6b6d (diff) | |
download | FreeBSD-src-9517b1a76d0699822b274d81da4432792c6c93d3.zip FreeBSD-src-9517b1a76d0699822b274d81da4432792c6c93d3.tar.gz |
Fix the experimental NFSv4 server so that it uses VOP_ACCESSX()
to check for VREAD_ACL instead of VOP_ACCESS().
MFC after: 3 days
Diffstat (limited to 'sys/fs/nfs/nfs_commonsubs.c')
-rw-r--r-- | sys/fs/nfs/nfs_commonsubs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c index 2f22490..77b7a6a 100644 --- a/sys/fs/nfs/nfs_commonsubs.c +++ b/sys/fs/nfs/nfs_commonsubs.c @@ -1983,7 +1983,7 @@ nfsv4_fillattr(struct nfsrv_descript *nd, vnode_t vp, NFSACL_T *saclp, NFSCLRBIT_ATTRBIT(retbitp, NFSATTRBIT_ACL); } else if (naclp != NULL) { if (vn_lock(vp, LK_SHARED) == 0) { - error = VOP_ACCESS(vp, VREAD_ACL, cred, p); + error = VOP_ACCESSX(vp, VREAD_ACL, cred, p); if (error == 0) error = VOP_GETACL(vp, ACL_TYPE_NFS4, naclp, cred, p); |