On 12/16/22 10:21 PM, Hou Tao wrote:
From: Hou Tao <houtao1@xxxxxxxxxx> There are warnings reported from resolve_btfids when building vmlinux with CONFIG_SECURITY_NETWORK disabled: WARN: resolve_btfids: unresolved symbol bpf_lsm_sk_free_security WARN: resolve_btfids: unresolved symbol bpf_lsm_sk_alloc_security So only define BTF IDs for these LSM hooks when CONFIG_SECURITY_NETWORK is enabled. Signed-off-by: Hou Tao <houtao1@xxxxxxxxxx>
LGTM. I think this patch should go to bpf tree. Acked-by: Yonghong Song <yhs@xxxxxx>