From: Al Viro Date: Sun, 16 Nov 2008 22:19:10 +0000 (+0000) Subject: Fix broken ownership of /proc/sys/ files X-Git-Tag: upstream/snapshot3+hdmi~21479 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c06fe772da43db63b053addcd2c267f76d0be91;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Fix broken ownership of /proc/sys/ files D'oh... Signed-off-by: Al Viro Reported-and-tested-by: Peter Palfrader Cc: stable@kernel.org Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 94fcfff..06ed10b 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -31,6 +31,7 @@ static struct inode *proc_sys_make_inode(struct super_block *sb, inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; inode->i_flags |= S_PRIVATE; /* tell selinux to ignore this inode */ inode->i_mode = table->mode; + inode->i_uid = inode->i_gid = 0; if (!table->child) { inode->i_mode |= S_IFREG; inode->i_op = &proc_sys_inode_operations;