seccomp: extract check/assign mode helpers
authorKees Cook <keescook@chromium.org>
Wed, 25 Jun 2014 22:38:02 +0000 (15:38 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 18 Jul 2014 19:13:36 +0000 (12:13 -0700)
commit1f41b450416e689b9b7c8bfb750a98604f687a9b
treef3429ad4a8e75c3e1f601af95113e19f88da4560
parentd78ab02c2c194257a03355fbb79eb721b381d105
seccomp: extract check/assign mode helpers

To support splitting mode 1 from mode 2, extract the mode checking and
assignment logic into common functions.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Andy Lutomirski <luto@amacapital.net>
kernel/seccomp.c