aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 929f535fb225..e645e3070360 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -434,8 +434,12 @@ static int exec_permission_lite(struct inode *inode)
434{ 434{
435 umode_t mode = inode->i_mode; 435 umode_t mode = inode->i_mode;
436 436
437 if (inode->i_op->permission) 437 if (inode->i_op->permission) {
438 return inode_permission(inode, MAY_EXEC); 438 int ret = inode->i_op->permission(inode, MAY_EXEC);
439 if (!ret)
440 goto ok;
441 return ret;
442 }
439 443
440 if (current_fsuid() == inode->i_uid) 444 if (current_fsuid() == inode->i_uid)
441 mode >>= 6; 445 mode >>= 6;