diff options
Diffstat (limited to 'fs/posix_acl.c')
-rw-r--r-- | fs/posix_acl.c | 2 |
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) | |||
218 | const struct posix_acl_entry *pa, *pe, *mask_obj; | 218 | const struct posix_acl_entry *pa, *pe, *mask_obj; |
219 | int found = 0; | 219 | int found = 0; |
220 | 220 | ||
221 | want &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_NOT_BLOCK; | ||
222 | |||
221 | FOREACH_ACL_ENTRY(pa, acl, pe) { | 223 | FOREACH_ACL_ENTRY(pa, acl, pe) { |
222 | switch(pa->e_tag) { | 224 | switch(pa->e_tag) { |
223 | case ACL_USER_OBJ: | 225 | case ACL_USER_OBJ: |