]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: namecheck attribute names before listing them
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 22:13:33 +0000 (17:13 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Jan 2020 22:13:33 +0000 (17:13 -0500)
Source kernel commit: 16c6e92c7e9836ed08db5f9771e75845796bd87f

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr_leaf.h

index 7b74e18becff79950778a62faf0a9a31b2becdc6..bb0880057ee30d902cf9c2eaf2eaaebcf2fef7e4 100644 (file)
@@ -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.