mbox series

[bpf-next,0/2] Add bpf_getxattr

Message ID 20220512165051.224772-1-kpsingh@kernel.org (mailing list archive)
Headers show
Series Add bpf_getxattr | expand

Message

KP Singh May 12, 2022, 4:50 p.m. UTC
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