]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f85ae07020ce3ce28c861b9aa80f7455ec32252
tree70f61a4b7db3af1dc2d9bd5918c6dc8af10315ce
parent9dcfe70838d93624ad77efbdedde8663e4bb1783
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