aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index c195ebb8e2aa..698a86094f76 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1475,7 +1475,7 @@ static void bprm_fill_uid(struct linux_binprm *bprm)
1475 if (task_no_new_privs(current)) 1475 if (task_no_new_privs(current))
1476 return; 1476 return;
1477 1477
1478 inode = file_inode(bprm->file); 1478 inode = bprm->file->f_path.dentry->d_inode;
1479 mode = READ_ONCE(inode->i_mode); 1479 mode = READ_ONCE(inode->i_mode);
1480 if (!(mode & (S_ISUID|S_ISGID))) 1480 if (!(mode & (S_ISUID|S_ISGID)))
1481 return; 1481 return;