]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86821713a4f003edb948a5757d98d0be083507db
tree226910e9b7b3b6778dbe962e611b4c6059601b7b
parent0054a673728863897ccfffcc0602d50fc06ed49b
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]