diff options
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index c74570736b24..36ad1b0d6259 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -499,6 +499,10 @@ static struct inode *proc_sys_make_inode(struct super_block *sb, | |||
499 | 499 | ||
500 | if (root->set_ownership) | 500 | if (root->set_ownership) |
501 | root->set_ownership(head, table, &inode->i_uid, &inode->i_gid); | 501 | root->set_ownership(head, table, &inode->i_uid, &inode->i_gid); |
502 | else { | ||
503 | inode->i_uid = GLOBAL_ROOT_UID; | ||
504 | inode->i_gid = GLOBAL_ROOT_GID; | ||
505 | } | ||
502 | 506 | ||
503 | return inode; | 507 | return inode; |
504 | } | 508 | } |