Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157286
b: refs/heads/master
c: f1ac9f6
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Sep 8, 2009
1 parent dc4c858 commit 1e10f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: b7a437b08a44a3ed7e3a052eb39d2c5f618b603b
refs/heads/master: f1ac9f6bfea6f21e8ab6dbbe46879d62a6fba8c0
8 changes: 1 addition & 7 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,7 @@ static int exec_permission_lite(struct inode *inode)
if (mode & MAY_EXEC)
goto ok;

if ((inode->i_mode & S_IXUGO) && capable(CAP_DAC_OVERRIDE))
goto ok;

if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_OVERRIDE))
goto ok;

if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_READ_SEARCH))
if (capable(CAP_DAC_OVERRIDE) || capable(CAP_DAC_READ_SEARCH))
goto ok;

return -EACCES;
Expand Down

0 comments on commit 1e10f66

Please sign in to comment.