Skip to content

Commit ba15642

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
bpf: Allow use of skc_to_mptcp_sock in cg_sockopt
Currently, bpf_skc_to_mptcp_sock() helper is not allowed to be used in cg_sockopt. This patch adds this permission. Signed-off-by: Geliang Tang <[email protected]>
1 parent eb2d736 commit ba15642

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/bpf/cgroup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,6 +2358,8 @@ cg_sockopt_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
23582358
#ifdef CONFIG_INET
23592359
case BPF_FUNC_tcp_sock:
23602360
return &bpf_tcp_sock_proto;
2361+
case BPF_FUNC_skc_to_mptcp_sock:
2362+
return &bpf_skc_to_mptcp_sock_proto;
23612363
#endif
23622364
case BPF_FUNC_perf_event_output:
23632365
return &bpf_event_output_data_proto;

0 commit comments

Comments
 (0)