Skip to content

Commit b24d7f0

Browse files
t-8chanakryiko
authored andcommitted
bpf, lsm: Remove bpf_lsm_key_free hook
The key_free LSM hook has been removed. Remove the corresponding BPF hook. Avoid warnings during the build: BTFIDS vmlinux WARN: resolve_btfids: unresolved symbol bpf_lsm_key_free Fixes: 5f8d28f ("lsm: infrastructure management of the key security blob") Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Song Liu <song@kernel.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/bpf/20241005-lsm-key_free-v1-1-42ea801dbd63@weissschuh.net
1 parent 45126b1 commit b24d7f0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/bpf/bpf_lsm.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@ BTF_ID(func, bpf_lsm_path_chmod)
339339
BTF_ID(func, bpf_lsm_path_chown)
340340
#endif /* CONFIG_SECURITY_PATH */
341341

342-
#ifdef CONFIG_KEYS
343-
BTF_ID(func, bpf_lsm_key_free)
344-
#endif /* CONFIG_KEYS */
345-
346342
BTF_ID(func, bpf_lsm_mmap_file)
347343
BTF_ID(func, bpf_lsm_netlink_send)
348344
BTF_ID(func, bpf_lsm_path_notify)

0 commit comments

Comments
 (0)