]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Migrate sendmsg deny test cases
authorJordan Rife <jrife@google.com>
Fri, 10 May 2024 19:02:24 +0000 (14:02 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 May 2024 00:10:41 +0000 (17:10 -0700)
commitf46a10483b27cc5a62b45e7e727445de6430e785
tree1bdf6bd6397d830524dc4dc6eb215300688a5040
parentd1b24fcf1c16290ce8cac467be2f7d6773de9da4
selftests/bpf: Migrate sendmsg deny test cases

This set of tests checks that sendmsg calls are rejected (return -EPERM)
when the sendmsg* hook returns 0. Replace those in bpf/test_sock_addr.c
with corresponding tests in prog_tests/sock_addr.c.

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