selftests/seccomp: Add test for atomic addfd+send
authorRodrigo Campos <rodrigo@kinvolk.io>
Mon, 17 May 2021 19:39:08 +0000 (12:39 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 28 Jun 2021 19:49:52 +0000 (12:49 -0700)
commite540ad97e73cefb41e93d0c06d0fe6a8620a77e0
tree70f61a4b7db3af1dc2d9bd5918c6dc8af10315ce
parent0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c
selftests/seccomp: Add test for atomic addfd+send

This just adds a test to verify that when using the new introduced flag
to ADDFD, a valid fd is added and returned as the syscall result.

Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io>
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Acked-by: Tycho Andersen <tycho@tycho.pizza>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210517193908.3113-5-sargun@sargun.me
tools/testing/selftests/seccomp/seccomp_bpf.c