bpf: Introduce BPF_PROG_TYPE_LSM
authorKP Singh <kpsingh@google.com>
Sun, 29 Mar 2020 00:43:49 +0000 (01:43 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 29 Mar 2020 23:34:00 +0000 (01:34 +0200)
commitfc611f47f2188ade2b48ff6902d5cce8baac0c58
treefa4363e15a618c0f4357d846f9b0b4cd20c6433c
parente5fb60ee4c958b92686830ecfaf5e60bbd139130
bpf: Introduce BPF_PROG_TYPE_LSM

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 <kpsingh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Florent Revest <revest@google.com>
Reviewed-by: Thomas Garnier <thgarnie@google.com>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: James Morris <jamorris@linux.microsoft.com>
Link: https://lore.kernel.org/bpf/20200329004356.27286-2-kpsingh@chromium.org
MAINTAINERS
include/linux/bpf.h
include/linux/bpf_types.h
include/uapi/linux/bpf.h
init/Kconfig
kernel/bpf/Makefile
kernel/bpf/bpf_lsm.c [new file with mode: 0644]
kernel/trace/bpf_trace.c
tools/include/uapi/linux/bpf.h
tools/lib/bpf/libbpf_probes.c