diff options
author | Song Liu <song@kernel.org> | 2025-01-30 13:35:49 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-02-13 19:35:32 -0800 |
commit | 60c2e1fa9168644db157665a44982861aa67dbef (patch) | |
tree | 0eee579fa9aabf4327140d49854d538b0cf1487d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 56467292794b800164df20c076c409ac548e56ec (diff) |
selftests/bpf: Test kfuncs that set and remove xattr from BPF programs
Two sets of tests are added to exercise the not _locked and _locked
version of the kfuncs. For both tests, user space accesses xattr
security.bpf.foo on a testfile. The BPF program is triggered by user
space access (on LSM hook inode_[set|get]_xattr) and sets or removes
xattr security.bpf.bar. Then user space then validates that xattr
security.bpf.bar is set or removed as expected.
Note that, in both tests, the BPF programs use the not _locked kfuncs.
The verifier picks the proper kfuncs based on the calling context.
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20250130213549.3353349-6-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions