]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Extend test fs_kfuncs to cover security.bpf. xattr names
authorSong Liu <song@kernel.org>
Thu, 30 Jan 2025 21:35:46 +0000 (13:35 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 14 Feb 2025 03:35:31 +0000 (19:35 -0800)
commitab39ad6796e59b967cf32652503f5a95f38b3632
tree3ea71afc6a7f10cf1510eddbe562c28ce5126d09
parent531118f1ccfc209d6d100f338eed064636f6da9b
selftests/bpf: Extend test fs_kfuncs to cover security.bpf. xattr names

Extend test_progs fs_kfuncs to cover different xattr names. Specifically:
xattr name "user.kfuncs" and "security.bpf.xxx" can be read from BPF
program with kfuncs bpf_get_[file|dentry]_xattr(); while "security.bpf"
and "security.selinux" cannot be read.

Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20250130213549.3353349-3-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c
tools/testing/selftests/bpf/progs/test_get_xattr.c