Re: broken ownership of /proc/sys/ files on 2.6.27

From: Al Viro
Date: Sun Nov 16 2008 - 17:56:46 EST


On Sun, Nov 16, 2008 at 11:44:11PM +0100, Jiri Slaby wrote:
> On 11/16/2008 11:19 PM, Al Viro wrote:
> > --- 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 */
>
> And what about this ^, is it OK?

Yes, it is. i_flags is initialized.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/