diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -896,7 +896,7 @@ int flush_old_exec(struct linux_binprm * bprm) | |||
896 | flush_thread(); | 896 | flush_thread(); |
897 | 897 | ||
898 | if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || | 898 | if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || |
899 | permission(bprm->file->f_dentry->d_inode,MAY_READ, NULL) || | 899 | file_permission(bprm->file, MAY_READ) || |
900 | (bprm->interp_flags & BINPRM_FLAGS_ENFORCE_NONDUMP)) { | 900 | (bprm->interp_flags & BINPRM_FLAGS_ENFORCE_NONDUMP)) { |
901 | suid_keys(current); | 901 | suid_keys(current); |
902 | current->mm->dumpable = suid_dumpable; | 902 | current->mm->dumpable = suid_dumpable; |