selftests/seccomp: Check for EPOLLHUP for user_notif
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 31 May 2020 11:50:31 +0000 (13:50 +0200)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jul 2020 23:01:51 +0000 (16:01 -0700)
commitad5682184a811d62e56f07d25d75eeee9dffe3d9
treee800489158ad4872d8d1181d89240b6f6761f89a
parent99cdb8b9a57393b5978e7a6310a2cba511dd179b
selftests/seccomp: Check for EPOLLHUP for user_notif

This verifies we're correctly notified when a seccomp filter becomes
unused when a notifier is in use.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200531115031.391515-4-christian.brauner@ubuntu.com
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/seccomp/seccomp_bpf.c