xfs: reject invalid flags combinations in XFS_IOC_ATTRMULTI_BY_HANDLE
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Jan 2020 23:25:38 +0000 (15:25 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Jan 2020 18:55:18 +0000 (10:55 -0800)
commit84fd081f8ae92e05ace47d24e58f26f7af2994c7
tree4d8e0e911e49fbaaa2d3db20e4ab4f5337e3d379
parent953aa9d136f53e226448dbd801a905c28f8071bf
xfs: reject invalid flags combinations in XFS_IOC_ATTRMULTI_BY_HANDLE

While the flags field in the ABI and the on-disk format allows for
multiple namespace flags, that is a logically invalid combination that
scrub complains about.  Reject it at the ioctl level, as all other
interface already get this right at higher levels.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_ioctl32.c