• Kees Cook's avatar
    seccomp: Invalidate seccomp mode to catch death failures · 495ac306
    Kees Cook authored
    If seccomp tries to kill a process, it should never see that process
    again. To enforce this proactively, switch the mode to something
    impossible. If encountered: WARN, reject all syscalls, and attempt to
    kill the process again even harder.
    
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Will Drewry <wad@chromium.org>
    Fixes: 8112c4f1 ("seccomp: remove 2-phase API")
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    495ac306
seccomp.c 62.3 KB