aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/proc/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 0762bc34d98b..fa0e6bee40fa 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1371,7 +1371,7 @@ static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_st
1371 ei->type = ino; 1371 ei->type = ino;
1372 inode->i_uid = 0; 1372 inode->i_uid = 0;
1373 inode->i_gid = 0; 1373 inode->i_gid = 0;
1374 if (ino == PROC_TGID_INO || ino == PROC_TID_INO || task_dumpable(task)) { 1374 if (task_dumpable(task)) {
1375 inode->i_uid = task->euid; 1375 inode->i_uid = task->euid;
1376 inode->i_gid = task->egid; 1376 inode->i_gid = task->egid;
1377 } 1377 }
@@ -1400,7 +1400,7 @@ static int pid_revalidate(struct dentry *dentry, struct nameidata *nd)
1400 struct inode *inode = dentry->d_inode; 1400 struct inode *inode = dentry->d_inode;
1401 struct task_struct *task = proc_task(inode); 1401 struct task_struct *task = proc_task(inode);
1402 if (pid_alive(task)) { 1402 if (pid_alive(task)) {
1403 if (proc_type(inode) == PROC_TGID_INO || proc_type(inode) == PROC_TID_INO || task_dumpable(task)) { 1403 if (task_dumpable(task)) {
1404 inode->i_uid = task->euid; 1404 inode->i_uid = task->euid;
1405 inode->i_gid = task->egid; 1405 inode->i_gid = task->egid;
1406 } else { 1406 } else {