Thread (59 messages) 59 messages, 6 authors, 2020-03-25

Re: [PATCH bpf-next v5 1/7] bpf: Introduce BPF_PROG_TYPE_LSM

From: Yonghong Song <hidden>
Date: 2020-03-23 19:03:27
Also in: bpf, lkml


On 3/23/20 9:44 AM, KP Singh wrote:
From: KP Singh <redacted>

Introduce types and configs for bpf programs that can be attached to
LSM hooks. The programs can be enabled by the config option
CONFIG_BPF_LSM.

Signed-off-by: KP Singh <redacted>
Reviewed-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Florent Revest <redacted>
Reviewed-by: Thomas Garnier <redacted>
Acked-by: Yonghong Song <redacted>
---
  MAINTAINERS                    |  1 +
  include/linux/bpf.h            |  3 +++
  include/linux/bpf_types.h      |  4 ++++
  include/uapi/linux/bpf.h       |  2 ++
  init/Kconfig                   | 10 ++++++++++
  kernel/bpf/Makefile            |  1 +
  kernel/bpf/bpf_lsm.c           | 17 +++++++++++++++++
  kernel/trace/bpf_trace.c       | 12 ++++++------
  tools/include/uapi/linux/bpf.h |  2 ++
  tools/lib/bpf/libbpf_probes.c  |  1 +
You may want to check bpftool support for new prog types
for proper output. It should be a simple change.
  10 files changed, 47 insertions(+), 6 deletions(-)
  create mode 100644 kernel/bpf/bpf_lsm.c
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help