commit | c852ef778224ecf5fe995d74ad96087038778bca | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Fri Jun 27 15:01:35 2014 -0700 |
committer | JP Abgrall <jpa@google.com> | Tue Oct 07 16:42:34 2014 -0700 |
tree | f317901d72a453cdf517c91b65ac6f130230fe7d | |
parent | 61b6b882a0abfeb627d25a069cfa1d232b84c8eb [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