]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/posix_acl.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-next
[karo-tx-linux.git] / fs / posix_acl.c
index 10027b42b7e29aefa1b9158ab0ec23de5f00914a..cea4623f1ed63007b8da0a8486ac65595415f895 100644 (file)
@@ -218,6 +218,8 @@ posix_acl_permission(struct inode *inode, const struct posix_acl *acl, int want)
        const struct posix_acl_entry *pa, *pe, *mask_obj;
        int found = 0;
 
+       want &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_NOT_BLOCK;
+
        FOREACH_ACL_ENTRY(pa, acl, pe) {
                 switch(pa->e_tag) {
                         case ACL_USER_OBJ: