Foundation for building more complex security policies using the BPF LSM as presented in LSF/MM/BPF: http://vger.kernel.org/bpfconf2022_material/lsfmmbpf2022-xattr.pdf KP Singh (2): bpf: Implement bpf_getxattr helper bpf/selftests: Add a selftest for bpf_getxattr include/uapi/linux/bpf.h | 8 +++ kernel/trace/bpf_trace.c | 26 +++++++++ scripts/bpf_doc.py | 5 ++ tools/include/uapi/linux/bpf.h | 8 +++ .../testing/selftests/bpf/prog_tests/xattr.c | 58 +++++++++++++++++++ tools/testing/selftests/bpf/progs/xattr.c | 34 +++++++++++ 6 files changed, 139 insertions(+) create mode 100644 tools/testing/selftests/bpf/prog_tests/xattr.c create mode 100644 tools/testing/selftests/bpf/progs/xattr.c -- 2.36.0.550.gb090851708-goog