[PATCH resend] seccomp: Make duplicate listener detection non-racy

2020-10-04 Thread Jann Horn
Currently, init_listener() tries to prevent adding a filter with SECCOMP_FILTER_FLAG_NEW_LISTENER if one of the existing filters already has a listener. However, this check happens without holding any lock that would prevent another thread from concurrently installing a new filter (potentially with

Re: [PATCH resend] seccomp: Make duplicate listener detection non-racy

2020-10-05 Thread Kees Cook
On Mon, 5 Oct 2020 03:44:01 +0200, Jann Horn wrote: > Currently, init_listener() tries to prevent adding a filter with > SECCOMP_FILTER_FLAG_NEW_LISTENER if one of the existing filters already > has a listener. However, this check happens without holding any lock that > would prevent another thread