[PATCH bpf-next v10 1/5] bpf: Add update_socket_protocol hook
Yonghong Song
yonghong.song at linux.dev
Fri Aug 4 04:28:00 UTC 2023
On 8/3/23 6:55 PM, Geliang Tang wrote:
> Add a hook named update_socket_protocol in __sys_socket(), for bpf
> progs to attach to and update socket protocol. One user case is to
> force legacy TCP apps to create and use MPTCP sockets instead of
> TCP ones.
>
> Define a mod_ret set named bpf_mptcp_fmodret_ids, add the hook
> update_socket_protocol into this set, and register it in
> bpf_mptcp_kfunc_init().
>
> Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/79
> Acked-by: Matthieu Baerts <matthieu.baerts at tessares.net>
> Signed-off-by: Geliang Tang <geliang.tang at suse.com>
Acked-by: Yonghong Song <yonghong.song at linux.dev>
More information about the Linux-security-module-archive
mailing list