projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'backlight-for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel...
[cascardo/linux.git]
/
fs
/
exec.c
diff --git
a/fs/exec.c
b/fs/exec.c
index
887c1c9
..
ca239fc
100644
(file)
--- a/
fs/exec.c
+++ b/
fs/exec.c
@@
-1411,7
+1411,7
@@
static void bprm_fill_uid(struct linux_binprm *bprm)
bprm->cred->euid = current_euid();
bprm->cred->egid = current_egid();
- if (
bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID
)
+ if (
!mnt_may_suid(bprm->file->f_path.mnt)
)
return;
if (task_no_new_privs(current))