aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 8344ba73a2a6..a6f64a98ac50 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -922,12 +922,6 @@ int prepare_binprm(struct linux_binprm *bprm)
922 int retval; 922 int retval;
923 923
924 mode = inode->i_mode; 924 mode = inode->i_mode;
925 /*
926 * Check execute perms again - if the caller has CAP_DAC_OVERRIDE,
927 * generic_permission lets a non-executable through
928 */
929 if (!(mode & 0111)) /* with at least _one_ execute bit set */
930 return -EACCES;
931 if (bprm->file->f_op == NULL) 925 if (bprm->file->f_op == NULL)
932 return -EACCES; 926 return -EACCES;
933 927