selftests/bpf: Add test for bpf_sock_read_xattr() kfunc

Add a selftest that loads the kfunc in sleepable and non-sleepable
lsm/socket_connect programs and checks that a value set via fsetxattr()
on a socket is read back.

Link: https://patch.msgid.link/20260617-work-bpf-sock-xattr-v1-2-a1276f7c9da3@kernel.org
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2026-06-17 13:18:28 +02:00
commit d717b7e84f
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 124 additions and 0 deletions