]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Check for invalid flags in xfs_attrlist_by_handle.
authorChristoph Hellwig <hch@infradead.org>
Fri, 27 Jun 2008 03:32:19 +0000 (13:32 +1000)
committerNiv Sardi <xaiki@debian.org>
Mon, 28 Jul 2008 06:59:07 +0000 (16:59 +1000)
commitf2d880164ae329697af06c0befefbca3ade8ec33
tree73786e6eaf77dfe9651dc643b94b967b013c41ce
parent32a9002b865bd525ba354af8449b960a2a6a9bd7
[XFS] Check for invalid flags in xfs_attrlist_by_handle.

xfs_attrlist_by_handle should only take the ATTR_ flags for the root
namespaces. The ATTR_KERN* flags may change at anytime and expect special
preconditions that can't be guaranteed for userspace-originating requests.
For example passing down ATTR_KERNNOVAL through xfs_attrlist_by_handle
will hit an assert in debug builds currently.

SGI-PV: 983677

SGI-Modid: xfs-linux-melb:xfs-kern:31351a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_ioctl.c