]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: don't return XFS_ATTR_PARENT attributes via listxattr
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 29 Jul 2024 23:22:48 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:03 +0000 (17:01 -0700)
commit7aa234805b88faf26d3c0f1230b0a65ff86410f3
tree5e4a7d634c1b7c247bc59455117ca7051ca85314
parent8b0afc59edb1ad62a078d5232d1f74093baa811b
xfs: don't return XFS_ATTR_PARENT attributes via listxattr

Source kernel commit: daf9f884906bcfcffe26967aee9ece893fba019b

Parent pointers are internal filesystem metadata.  They're not intended
to be directly visible to userspace, so filter them out of
xfs_xattr_put_listent so that they don't appear in listxattr.

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Inspired-by: Andrey Albershteyn <aalbersh@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: change this to XFS_ATTR_PRIVATE_NSP_MASK per fsverity patchset]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_da_format.h