Re: [PATCH 1/4] Cache xattr security drop check for write v2
From: Andi Kleen
Date: Tue May 31 2011 - 16:18:43 EST
On Tue, May 31, 2011 at 09:07:50PM +0100, Al Viro wrote:
> On Tue, May 31, 2011 at 07:42:26PM +0100, Steven Whitehouse wrote:
>
> > Yes, it should test for xattr too,
>
> Frankly, I suspect that the sanest way to handle that is this:
> * new superblock flag - MS_NOSEC
> * S_NOSEC is never set unless we have MS_NOSEC
> * mount_bdev() sets it before calling fill_super callback.
> * ocfs2 and fuse *clear* it in their fill_super
gfs2 needs to clear it too (unless Steven's updated patch goes in too)
Steven?
> * btrfs manually sets it in its ->mount()
Looks good. I haven't test it so far though.
Acked-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
-Andi
--
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/