aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 887c1c955df8..ca239fc86d8d 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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))