• Christian Brauner's avatar
    seccomp: Lift wait_queue into struct seccomp_filter · 76194c4e
    Christian Brauner authored
    Lift the wait_queue from struct notification into struct seccomp_filter.
    This is cleaner overall and lets us avoid having to take the notifier
    mutex in the future for EPOLLHUP notifications since we need to neither
    read nor modify the notifier specific aspects of the seccomp filter. In
    the exit path I'd very much like to avoid having to take the notifier mutex
    for each filter in the task's filter hierarchy.
    
    Cc: Tycho Andersen <tycho@tycho.ws>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Matt Denton <mpdenton@google.com>
    Cc: Sargun Dhillon <sargun@sargun.me>
    Cc: Jann Horn <jannh@google.com>
    Cc: Chris Palmer <palmer@google.com>
    Cc: Aleksa Sarai <cyphar@cyphar.com>
    Cc: Robert Sesek <rsesek@google.com>
    Cc: Jeffrey Vander Stoep <jeffv@google.com>
    Cc: Linux Containers <containers@lists.linux-foundation.org>
    Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    76194c4e
seccomp.c 47 KB