mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 01:34:09 +00:00
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:
parent
869c29a7e7
commit
37ba986a5f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193507
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue