Re: [PATCH v2 2/2] tests: test seccomp filter notifications

2020-05-29 Thread Christian Brauner
On Thu, May 28, 2020 at 10:41:45PM -0700, Kees Cook wrote: > On Thu, May 28, 2020 at 05:14:12PM +0200, Christian Brauner wrote: > > This verifies we're correctly notified when a seccomp filter becomes > > unused when a notifier is in use. > > While you're adding this, can you adjust the other user

Re: [PATCH v2 2/2] tests: test seccomp filter notifications

2020-05-28 Thread Kees Cook
On Thu, May 28, 2020 at 05:14:12PM +0200, Christian Brauner wrote: > This verifies we're correctly notified when a seccomp filter becomes > unused when a notifier is in use. While you're adding this, can you adjust the other user_notif tests to check for POLLHUP as well (i.e fail if it appears)?

[PATCH v2 2/2] tests: test seccomp filter notifications

2020-05-28 Thread Christian Brauner
This verifies we're correctly notified when a seccomp filter becomes unused when a notifier is in use. Signed-off-by: Christian Brauner --- /* v2 */ unchanged --- tools/testing/selftests/seccomp/seccomp_bpf.c | 136 ++ 1 file changed, 136 insertions(+) diff --git a/tools/testing