diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 | ||