diff options
| author | Lorenz Bauer <lmb@cloudflare.com> | 2020-08-21 11:29:48 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2020-08-21 15:16:12 -0700 |
| commit | bb23c0e1c57f3b40c8d2713401c1b42df911d424 (patch) | |
| tree | 50361f2ed977f724fc78f240c2a01df9f130f87f /net/lapb/lapb_timer.c | |
| parent | 0126240f448d5bba29d0d1593aa527d3bf67b916 (diff) | |
selftests: bpf: Test sockmap update from BPF
Add a test which copies a socket from a sockmap into another sockmap
or sockhash. This excercises bpf_map_update_elem support from BPF
context. Compare the socket cookies from source and destination to
ensure that the copy succeeded.
Also check that the verifier rejects map_update from unsafe contexts.
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200821102948.21918-7-lmb@cloudflare.com
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
