Commit 77208e0e authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] missing checks in exec_permission_light()

	Missing checks added...
parent 2cd8916b
......@@ -324,6 +324,12 @@ static inline int exec_permission_lite(struct inode *inode)
if (mode & MAY_EXEC)
return 0;
if ((inode->i_mode & S_IXUGO) && capable(CAP_DAC_OVERRIDE))
return 0;
if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_READ_SEARCH))
return 0;
return -EACCES;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment