Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ari Savolainen and committed by
Al Viro
206b1d09 c2f340a6

+1 -1
+1 -1
fs/namei.c
··· 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);