Re: [RFC][PATCH 0/2] Correct behavior for listxattr and 'trusted'xattrs

From: James Morris
Date: Wed Mar 10 2010 - 09:05:39 EST


On Wed, 10 Mar 2010, Christoph Hellwig wrote:

> Now that everyone felt the consensus is that we need the check I look
> into adding it into XFS, but it seems like we already have that check
> in xfs_xattr_put_listent:
>
> /*
> * Only show root namespace entries if we are actually allowed to
> * see them.
> */
> if ((flags & XFS_ATTR_ROOT) && !capable(CAP_SYS_ADMIN))
> return 0;
>

Looks like I didn't understand what the XFS code was doing.


- James
--
James Morris
<jmorris@xxxxxxxxx>
--
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/