From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH 2/2] ocfs2: ensure trusted xattrs are not returned to unprivileged users via listxattr Date: Tue, 2 Mar 2010 17:15:17 -0600 Message-ID: <20100302231517.GA3910@us.ibm.com> References: <20100302092946.GA21180@mail.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: James Morris , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, David Woodhouse , Mark Fash Return-path: Content-Disposition: inline In-Reply-To: <20100302092946.GA21180@mail.oracle.com> Sender: linux-security-module-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Quoting Joel Becker (Joel.Becker@oracle.com): > On Tue, Mar 02, 2010 at 07:02:22PM +1100, James Morris wrote: > > Ensure that trusted xattrs are not returned to unprivileged users > > via listxattr, in keeping with several other implmentations, such > > as ext3. > > > > Signed-off-by: James Morris > > If this is the standard expectation, why not lift it up into the vfs? I wonder why xattr_permission() isn't called from vfs_listxattr() in fs/xattr.c? It sure looks like it was done on purpose... > Acked-by: Joel Becker > > -- > > "The nearest approach to immortality on Earth is a government > bureau." > - James F. Byrnes > > Joel Becker > Principal Software Developer > Oracle > E-mail: joel.becker@oracle.com > Phone: (650) 506-8127 > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html