From: Andrii Nakryiko Date: Sat, 14 Aug 2021 00:49:24 +0000 (-0700) Subject: Merge branch 'bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_CGROUP_SOCKOPT' X-Git-Tag: accepted/tizen/unified/20230118.172025~6527^2~22^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=faff1cca3b8bd730c31f9ceaef8ff43b3a5935f5;p=platform%2Fkernel%2Flinux-rpi.git Merge branch 'bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_CGROUP_SOCKOPT' Stanislav Fomichev says: ==================== We'd like to be able to identify netns from setsockopt hooks to be able to do the enforcement of some options only in the "initial" netns (to give users the ability to create clear/isolated sandboxes if needed without any enforcement by doing unshare(net)). v3: - remove extra 'ctx->skb == NULL' check (Martin KaFai Lau) - rework test to make sure the helper is really called, not just verified v2: - add missing CONFIG_NET ==================== Signed-off-by: Andrii Nakryiko --- faff1cca3b8bd730c31f9ceaef8ff43b3a5935f5