xfs: namecheck attribute names before listing them
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Oct 2019 23:12:33 +0000 (16:12 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 29 Oct 2019 16:50:11 +0000 (09:50 -0700)
commit16c6e92c7e9836ed08db5f9771e75845796bd87f
tree070484f28cf4cfd7c56c0f5a7095930b498b5485
parentc84760659dcf237902d4cc997cd5f55cb3b2807f
xfs: namecheck attribute names before listing them

Actually call namecheck on attribute names before we hand them over to
userspace.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_attr_leaf.h
fs/xfs/xfs_attr_list.c