BPF List
 help / color / mirror / Atom feed
From: KP Singh <kpsingh@kernel.org>
To: bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>
Subject: [PATCH bpf-next 0/2] Add bpf_getxattr
Date: Thu, 12 May 2022 16:50:49 +0000	[thread overview]
Message-ID: <20220512165051.224772-1-kpsingh@kernel.org> (raw)

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


             reply	other threads:[~2022-05-12 16:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-12 16:50 KP Singh [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220512165051.224772-1-kpsingh@kernel.org \
    --to=kpsingh@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox