diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-01-28 09:21:17 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-01-31 10:13:21 +0100 |
commit | 9acea337ef570faa14f13232d1b2fa6615aaf569 (patch) | |
tree | beab5ebbc6e9174d6c948912997de4d653ef6485 /tools/testing/selftests/bpf/verifier/unpriv.c | |
parent | selftests/bpf: skip verifier tests for unsupported program types (diff) | |
download | linux-dev-9acea337ef570faa14f13232d1b2fa6615aaf569.tar.xz linux-dev-9acea337ef570faa14f13232d1b2fa6615aaf569.zip |
selftests/bpf: skip verifier tests for unsupported map types
Use recently introduced bpf_probe_map_type() to skip tests in the
test_verifier if map creation (create_map) fails. It's handled
explicitly for each fixup, i.e. if bpf_create_map returns negative fd,
we probe the kernel for the appropriate map support and skip the
test is map type is not supported.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions