commit | 41f9f5b82fe601115e4bf902651447dff40ea182 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Fri Jun 27 15:01:35 2014 -0700 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sat Nov 18 11:50:24 2017 +0100 |
tree | 916a5048fdfbdf5d176f831f6418fa55743386f5 | |
parent | 9f4c135046c5abd7fccf09c9f7594d8e3eda4cc8 [diff] |
seccomp: allow mode setting across threads This changes the mode setting helper to allow threads to change the seccomp mode from another thread. We must maintain barriers to keep TIF_SECCOMP synchronized with the rest of the seccomp state. Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Andy Lutomirski <luto@amacapital.net> Conflicts: kernel/seccomp.c