diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1411,7 +1411,7 @@ static void bprm_fill_uid(struct linux_binprm *bprm) | |||
1411 | bprm->cred->euid = current_euid(); | 1411 | bprm->cred->euid = current_euid(); |
1412 | bprm->cred->egid = current_egid(); | 1412 | bprm->cred->egid = current_egid(); |
1413 | 1413 | ||
1414 | if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) | 1414 | if (!mnt_may_suid(bprm->file->f_path.mnt)) |
1415 | return; | 1415 | return; |
1416 | 1416 | ||
1417 | if (task_no_new_privs(current)) | 1417 | if (task_no_new_privs(current)) |