Skip to content

Commit

Permalink
bpf: Fix renaming task_getsecid_subj->current_getsecid_subj.
Browse files Browse the repository at this point in the history
The commit 6326948 missed renaming of task->current LSM hook in BTF_ID.
Fix it to silence build warning:
WARN: resolve_btfids: unresolved symbol bpf_lsm_task_getsecid_subj

Fixes: 6326948 ("lsm: security_task_getsecid_subj() -> security_current_getsecid_subj()")
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
  • Loading branch information
Alexei Starovoitov committed Jan 25, 2022
1 parent e52984b commit 63ee956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/bpf/bpf_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ BTF_ID(func, bpf_lsm_socket_socketpair)

BTF_ID(func, bpf_lsm_syslog)
BTF_ID(func, bpf_lsm_task_alloc)
BTF_ID(func, bpf_lsm_task_getsecid_subj)
BTF_ID(func, bpf_lsm_current_getsecid_subj)
BTF_ID(func, bpf_lsm_task_getsecid_obj)
BTF_ID(func, bpf_lsm_task_prctl)
BTF_ID(func, bpf_lsm_task_setscheduler)
Expand Down

0 comments on commit 63ee956

Please sign in to comment.