]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Migrate ATTACH_REJECT test cases
authorJordan Rife <jrife@google.com>
Fri, 10 May 2024 19:02:28 +0000 (14:02 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 May 2024 00:10:42 +0000 (17:10 -0700)
commitcded71f595c0c4396acc9657911c5aa2a289a8dc
tree0a19936a1008dd0e3c96b7e1aa76b8de24fffe00
parentb0f3af0bffefc54650d9fb10810fc2f974365dfd
selftests/bpf: Migrate ATTACH_REJECT test cases

Migrate test case from bpf/test_sock_addr.c ensuring that program
attachment fails when using an inappropriate attach type.

Signed-off-by: Jordan Rife <jrife@google.com>
Link: https://lore.kernel.org/r/20240510190246.3247730-12-jrife@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sock_addr.c
tools/testing/selftests/bpf/test_sock_addr.c