]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Drop disabled LSM hooks from the sleepable set
authorMikko Ylinen <mikko.ylinen@linux.intel.com>
Mon, 25 Jan 2021 06:39:36 +0000 (08:39 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 26 Jan 2021 16:08:50 +0000 (17:08 +0100)
commit16623f0a872b8e1f4f29fe6efcb6423dbc30269a
tree2a2f324c5b42a5161314604d2cfc79aebd52cce2
parent83af936ed7b36e6be422ac6e55555636008eee9e
bpf: Drop disabled LSM hooks from the sleepable set

Some networking and keys LSM hooks are conditionally enabled
and when building the new sleepable BPF LSM hooks with those
LSM hooks disabled, the following build error occurs:

  BTFIDS  vmlinux
  FAILED unresolved symbol bpf_lsm_socket_socketpair

To fix the error, conditionally add the relevant networking/keys
LSM hooks to the sleepable set.

Fixes: 882dabd68cf69 ("bpf: Augment the set of sleepable LSM hooks")
Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20210125063936.89365-1-mikko.ylinen@linux.intel.com
kernel/bpf/bpf_lsm.c