Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257306
b: refs/heads/master
c: 4cf2714
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jul 20, 2011
1 parent 4c63eb7 commit 5c13c6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 43e15cdbefea4ce6d68113de98d4f61c0cf45687
refs/heads/master: 4cf27141cbe0239f48ec6f0b37bad347d51d1785
18 changes: 9 additions & 9 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,19 +584,19 @@ static inline int exec_permission(struct inode *inode, unsigned int flags)

if (inode->i_op->permission) {
ret = inode->i_op->permission(inode, MAY_EXEC, flags);
if (likely(!ret))
goto ok;
} else {
ret = acl_permission_check(inode, MAY_EXEC, flags,
inode->i_op->check_acl);
if (likely(!ret))
goto ok;
if (ret != -EACCES)
return ret;
if (ns_capable(ns, CAP_DAC_OVERRIDE) ||
ns_capable(ns, CAP_DAC_READ_SEARCH))
goto ok;
}
if (likely(!ret))
goto ok;
if (ret == -ECHILD)
return ret;

if (ns_capable(ns, CAP_DAC_OVERRIDE) ||
ns_capable(ns, CAP_DAC_READ_SEARCH))
goto ok;

return ret;
ok:
return security_inode_exec_permission(inode, flags);
Expand Down

0 comments on commit 5c13c6f

Please sign in to comment.