aboutsummaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorLevin Calado <levincalado@gmail.com>2015-07-05 15:37:10 +0800
committerMoyster <oysterized@gmail.com>2016-08-26 19:17:16 +0200
commit6cc98d8e5381a1c4154666c75b5280afb0f8e946 (patch)
tree4400f8418c171c1314bbba020f80db8df3b41094 /fs/exec.c
parent6c12995c93081bfec11af4f011a1de688c634652 (diff)
fs: fix commit 9eae8ac6 based off d0ff694
Signed-off-by: Levin Calado <levincalado@gmail.com> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
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 8500ffa88..54965313c 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1279,7 +1279,7 @@ static void bprm_fill_uid(struct linux_binprm *bprm)
if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID)
return;
- if (current->no_new_privs)
+ if (task_no_new_privs(current))
return;
inode = file_inode(bprm->file);