[PATCH v3 2/4] xfs: initialize inode security on tmpfile creation

Christoph Hellwig hch at infradead.org
Tue Apr 15 12:50:33 CDT 2014


On Tue, Apr 15, 2014 at 12:18:24PM -0400, Brian Foster wrote:
> +	error = xfs_init_security(inode, dir, &dentry->d_name);
> +	if (unlikely(error)) {
> +		iput(inode);
> +		return -error;
> +	}
> +
>  	d_tmpfile(dentry, inode);
>  

I'd really love to hear from the LSM people who they plan to deal with
O_TMPFILE inodes.    But given that this seems to fix a real life bug
let's go with it for now.



More information about the xfs mailing list