]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/xattr: path-based AF_UNIX socket xattr tests
authorChristian Brauner <brauner@kernel.org>
Mon, 16 Feb 2026 13:32:08 +0000 (14:32 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 2 Mar 2026 10:06:42 +0000 (11:06 +0100)
commit7e28fef5d4db3a5e61cfcd4b09313933d16c0430
treed0b30ab6103535d22b86d950eef57d72119ac7fc
parentdc0876b9846d3d48bb8528332106d1b051578a02
selftests/xattr: path-based AF_UNIX socket xattr tests

Test user.* extended attribute operations on path-based Unix domain
sockets (SOCK_STREAM, SOCK_DGRAM, SOCK_SEQPACKET). Path-based sockets
are bound to a filesystem path and their inodes live on the underlying
filesystem (e.g. tmpfs).

Covers set/get/list/remove, persistence, XATTR_CREATE/XATTR_REPLACE
flags, empty values, size queries, buffer-too-small errors, O_PATH fd
operations, and trusted.* xattr handling.

Link: https://patch.msgid.link/20260216-work-xattr-socket-v1-12-c2efa4f74cb7@kernel.org
Acked-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/filesystems/xattr/.gitignore [new file with mode: 0644]
tools/testing/selftests/filesystems/xattr/Makefile [new file with mode: 0644]
tools/testing/selftests/filesystems/xattr/xattr_socket_test.c [new file with mode: 0644]