Fix bug where NFSv4 ACL enforcement code wouldn't unconditionally

allow the owner to read and write ACL and file attributes when there
was no entry with subject matching the owner.  In other words,
'getfacl meh' shouldn't fail for the owner if the ACL looks like this:

# file: meh
# owner: trasz
# group: wheel
         user:root:------a-------:------:allow

Reported by:	kientzle
This commit is contained in:
Edward Tomasz Napierala 2012-04-17 14:54:00 +00:00
parent 0b18eb6d74
commit 9e21ef395a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234385

View File

@ -162,6 +162,9 @@ _acl_denies(const struct acl *aclp, int access_mask, struct ucred *cred,
return (0);
}
if (access_mask == 0)
return (0);
return (1);
}