diff options
author | 2018-10-19 09:57:58 -0700 | |
---|---|---|
committer | 2018-10-19 13:49:34 -0700 | |
commit | 2cb494a36c98279c5c6ce8e99cf9776f15449ade (patch) | |
tree | c8a67095d219b652a8eea067188bff6c599e6881 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: add cg_skb_is_valid_access for BPF_PROG_TYPE_CGROUP_SKB (diff) | |
download | wireguard-linux-2cb494a36c98279c5c6ce8e99cf9776f15449ade.tar.xz wireguard-linux-2cb494a36c98279c5c6ce8e99cf9776f15449ade.zip |
bpf: add tests for direct packet access from CGROUP_SKB
Tests are added to make sure CGROUP_SKB cannot access:
tc_classid, data_meta, flow_keys
and can read and write:
mark, prority, and cb[0-4]
and can read other fields.
To make selftest with skb->sk work, a dummy sk is added in
bpf_prog_test_run_skb().
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions