Commit 5c06fe77 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

Fix broken ownership of /proc/sys/ files

D'oh...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Reported-and-tested-by: default avatarPeter Palfrader <peter@palfrader.org>
Cc: stable@kernel.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 77fb61a0
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment