Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253842
b: refs/heads/master
c: 8e833fd
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jun 20, 2011
1 parent 5d49272 commit dcd08d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 6291176bcd71a2766a19a10cbd9bab07d289e1d7
refs/heads/master: 8e833fd2e1f0107ee7a4b6bc4de3c9f0e9b0ed41
3 changes: 2 additions & 1 deletion trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ int generic_permission(struct inode *inode, int mask, unsigned int flags,

/*
* Read/write DACs are always overridable.
* Executable DACs are overridable if at least one exec bit is set.
* Executable DACs are overridable for all directories and
* for non-directories that have least one exec bit set.
*/
if (!(mask & MAY_EXEC) || execute_ok(inode))
if (ns_capable(inode_userns(inode), CAP_DAC_OVERRIDE))
Expand Down

0 comments on commit dcd08d5

Please sign in to comment.