]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/namei.c
Fix POSIX ACL permission check
[karo-tx-linux.git] / fs / namei.c
index 4a98bf154d88421fc3148d96133843a4da01a828..fc13609a354a4d5ae919a1cfb31d1a788d537c68 100644 (file)
@@ -186,7 +186,7 @@ static int check_acl(struct inode *inode, int mask)
                /* no ->get_acl() calls in RCU mode... */
                if (acl == ACL_NOT_CACHED)
                        return -ECHILD;
-               return posix_acl_permission(inode, acl, mask);
+               return posix_acl_permission(inode, acl, mask & ~MAY_NOT_BLOCK);
        }
 
        acl = get_cached_acl(inode, ACL_TYPE_ACCESS);