Commit f8082454 authored by kwb0523's avatar kwb0523
Browse files

bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SOCK_OPS

mainline inclusion
from mainline-v6.5-rc3
commit 6cf1770d
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NL40
CVE: NA

Reference: https://github.com/torvalds/linux/commit/6cf1770d63dd2d0d0d4048e7b3ee360336c072d9



----------------------------------------------------------------------

We'd like to be able to identify netns from sockops hooks to
accelerate local process communication form different netns.

Signed-off-by: default avatarXu Liu <liuxu623@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarSong Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210818105820.91894-2-liuxu623@gmail.com


Signed-off-by: default avatarJofDiamonds <kwb0523@163.com>
Reviewed-by: default avatarwuchangye <wuchangye@huawei.com>
parent c5633a85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment