diff options
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 0bc9ca03b91..0c9de19a163 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1451,8 +1451,6 @@ static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_st | |||
1451 | if (!ei->pid) | 1451 | if (!ei->pid) |
1452 | goto out_unlock; | 1452 | goto out_unlock; |
1453 | 1453 | ||
1454 | inode->i_uid = 0; | ||
1455 | inode->i_gid = 0; | ||
1456 | if (task_dumpable(task)) { | 1454 | if (task_dumpable(task)) { |
1457 | rcu_read_lock(); | 1455 | rcu_read_lock(); |
1458 | cred = __task_cred(task); | 1456 | cred = __task_cred(task); |
@@ -2372,8 +2370,6 @@ static struct dentry *proc_base_instantiate(struct inode *dir, | |||
2372 | if (!ei->pid) | 2370 | if (!ei->pid) |
2373 | goto out_iput; | 2371 | goto out_iput; |
2374 | 2372 | ||
2375 | inode->i_uid = 0; | ||
2376 | inode->i_gid = 0; | ||
2377 | inode->i_mode = p->mode; | 2373 | inode->i_mode = p->mode; |
2378 | if (S_ISDIR(inode->i_mode)) | 2374 | if (S_ISDIR(inode->i_mode)) |
2379 | inode->i_nlink = 2; | 2375 | inode->i_nlink = 2; |