BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] Add bpf_getxattr
@ 2022-05-12 16:50 KP Singh
  2022-05-12 16:50 ` [PATCH bpf-next 1/2] bpf: Implement bpf_getxattr helper KP Singh
  2022-05-12 16:50 ` [PATCH bpf-next 2/2] bpf/selftests: Add a selftest for bpf_getxattr KP Singh
  0 siblings, 2 replies; 5+ messages in thread
From: KP Singh @ 2022-05-12 16:50 UTC (permalink / raw)
  To: bpf; +Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-13  0:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-12 16:50 [PATCH bpf-next 0/2] Add bpf_getxattr KP Singh
2022-05-12 16:50 ` [PATCH bpf-next 1/2] bpf: Implement bpf_getxattr helper KP Singh
2022-05-12 17:29   ` Alexei Starovoitov
2022-05-13  0:20     ` KP Singh
2022-05-12 16:50 ` [PATCH bpf-next 2/2] bpf/selftests: Add a selftest for bpf_getxattr KP Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox