From: Darrick J. Wong Date: Thu, 16 Jan 2020 22:13:33 +0000 (-0500) Subject: xfs: namecheck attribute names before listing them X-Git-Tag: v5.5.0-rc0~90 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=43074fbaa38f23917767bc3230cf3433c1e54757;p=thirdparty%2Fxfsprogs-dev.git xfs: namecheck attribute names before listing them Source kernel commit: 16c6e92c7e9836ed08db5f9771e75845796bd87f Actually call namecheck on attribute names before we hand them over to userspace. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_attr_leaf.h b/libxfs/xfs_attr_leaf.h index 7b74e18be..bb0880057 100644 --- a/libxfs/xfs_attr_leaf.h +++ b/libxfs/xfs_attr_leaf.h @@ -67,8 +67,8 @@ int xfs_attr3_leaf_add(struct xfs_buf *leaf_buffer, struct xfs_da_args *args); int xfs_attr3_leaf_remove(struct xfs_buf *leaf_buffer, struct xfs_da_args *args); -void xfs_attr3_leaf_list_int(struct xfs_buf *bp, - struct xfs_attr_list_context *context); +int xfs_attr3_leaf_list_int(struct xfs_buf *bp, + struct xfs_attr_list_context *context); /* * Routines used for shrinking the Btree.