Don't check MAC in the NFS server ACL set path, right now we aren't

enforcing MAC for NFS clients.
This commit is contained in:
Robert Watson 2009-06-05 14:15:00 +00:00
parent 869c29a7e7
commit 37ba986a5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193507

View file

@ -703,10 +703,6 @@ nfsrv_setacl(vnode_t vp, NFSACL_T *aclp, struct ucred *cred,
if (aclp->acl_cnt > (ACL_MAX_ENTRIES - 6) / 2)
return (NFSERR_ATTRNOTSUPP);
error = VOP_ACLCHECK(vp, ACL_TYPE_NFS4, aclp, cred, p);
#ifdef MAC
if (!error)
error = mac_check_vnode_setacl(cred, vp, ACL_TYPE_NFS4, aclp);
#endif
if (!error)
error = VOP_SETACL(vp, ACL_TYPE_NFS4, aclp, cred, p);
return (error);