bpf: lsm: Initialize the BPF LSM hooks
authorKP Singh <kpsingh@google.com>
Sun, 29 Mar 2020 00:43:53 +0000 (01:43 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 29 Mar 2020 23:34:00 +0000 (01:34 +0200)
commit520b7aa00d8cd8e411ecc09f63a2acd90feb6d29
tree226910e9b7b3b6778dbe962e611b4c6059601b7b
parent9e4e01dfd3254c7f04f24b7c6b29596bc12332f3
bpf: lsm: Initialize the BPF LSM hooks

* The hooks are initialized using the definitions in
  include/linux/lsm_hook_defs.h.
* The LSM can be enabled / disabled with 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>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: James Morris <jamorris@linux.microsoft.com>
Link: https://lore.kernel.org/bpf/20200329004356.27286-6-kpsingh@chromium.org
security/Kconfig
security/Makefile
security/bpf/Makefile [new file with mode: 0644]
security/bpf/hooks.c [new file with mode: 0644]