diff options
author | 2024-08-06 16:09:04 -0700 | |
---|---|---|
committer | 2024-08-07 11:28:04 -0700 | |
commit | 8681156c0939a7511c47b9cc462390a83f0e846a (patch) | |
tree | c2709241d6c34175b999eac6e07886f2f42373c2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Add kfunc bpf_get_dentry_xattr() to read xattr from dentry (diff) | |
download | wireguard-linux-8681156c0939a7511c47b9cc462390a83f0e846a.tar.xz wireguard-linux-8681156c0939a7511c47b9cc462390a83f0e846a.zip |
selftests/bpf: Add tests for bpf_get_dentry_xattr
Add test for bpf_get_dentry_xattr on hook security_inode_getxattr.
Verify that the kfunc can read the xattr. Also test failing getxattr
from user space by returning non-zero from the LSM bpf program.
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240806230904.71194-4-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions