Commit 206b1d09a56dcd2db1052245c4131879c410eaf8
Committed by
Al Viro
1 parent
c2f340a69c
Exists in
master
and in
6 other branches
Fix POSIX ACL permission check
After commit 3567866bf261: "RCUify freeing acls, let check_acl() go ahead in RCU mode if acl is cached" posix_acl_permission is being called with an unsupported flag and the permission check fails. This patch fixes the issue. Signed-off-by: Ari Savolainen <ari.m.savolainen@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/namei.c
... | ... | @@ -186,7 +186,7 @@ |
186 | 186 | /* no ->get_acl() calls in RCU mode... */ |
187 | 187 | if (acl == ACL_NOT_CACHED) |
188 | 188 | return -ECHILD; |
189 | - return posix_acl_permission(inode, acl, mask); | |
189 | + return posix_acl_permission(inode, acl, mask & ~MAY_NOT_BLOCK); | |
190 | 190 | } |
191 | 191 | |
192 | 192 | acl = get_cached_acl(inode, ACL_TYPE_ACCESS); |