summaryrefslogtreecommitdiffstats
path: root/fs/posix_acl.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@kernel.org>2011-10-23 19:43:32 +0200
committerroot <root@serles.lst.de>2011-10-28 14:58:54 +0200
commitd124b60a838141bb9cac1b6567e9ca4539d1fff0 (patch)
treeaefe6f38e9617b0a878dac1db2bc65981fbc216a /fs/posix_acl.c
parentvfs: add hex format for MAY_* flag values (diff)
downloadlinux-d124b60a838141bb9cac1b6567e9ca4539d1fff0.tar.xz
linux-d124b60a838141bb9cac1b6567e9ca4539d1fff0.zip
vfs: pass all mask flags check_acl and posix_acl_permission
Acked-by: J. Bruce Fields <bfields@redhat.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Andreas Gruenbacher <agruen@kernel.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r--fs/posix_acl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/posix_acl.c b/fs/posix_acl.c
index 10027b42b7e2..cea4623f1ed6 100644
--- a/fs/posix_acl.c
+++ b/fs/posix_acl.c
@@ -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: