diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-08-14 03:49:24 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-08-14 03:51:29 +0300 |
commit | faff1cca3b8bd730c31f9ceaef8ff43b3a5935f5 (patch) | |
tree | 88c9dae2a28e3495a2f32507a566fea3b18cd848 /samples/bpf | |
parent | d164dd9a5c08c16a883b3de97d13948c7be7fa4d (diff) | |
parent | 6a3a3dcc3f0e5dde3c9417f0419ff8efbab60c60 (diff) | |
download | linux-faff1cca3b8bd730c31f9ceaef8ff43b3a5935f5.tar.xz |
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 <andrii@kernel.org>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions