]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cf194e9dc70826ecb8da730ecb0076caa0918a1
treefa4363e15a618c0f4357d846f9b0b4cd20c6433c
parent33a3c25cc78c5cd4bc32bd3792a8ead161b89854
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