Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270020
b: refs/heads/master
c: d124b60
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Gruenbacher authored and root committed Oct 28, 2011
1 parent 4768aa0 commit 41b984f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8522ca5818652c4da6808c66a307abce75462212
refs/heads/master: d124b60a838141bb9cac1b6567e9ca4539d1fff0
2 changes: 0 additions & 2 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ static int acl_permission_check(struct inode *inode, int mask)
{
unsigned int mode = inode->i_mode;

mask &= MAY_READ | MAY_WRITE | MAY_EXEC | MAY_NOT_BLOCK;

if (current_user_ns() != inode_userns(inode))
goto other_perms;

Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/posix_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 41b984f

Please sign in to comment.