Skip to content
Commit 78031381 authored by Mikko Ylinen's avatar Mikko Ylinen Committed by Daniel Borkmann
Browse files

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: 423f1610 ("bpf: Augment the set of sleepable LSM hooks")
Signed-off-by: default avatarMikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarKP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20210125063936.89365-1-mikko.ylinen@linux.intel.com
parent b9557caa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment