seccomp: extract check/assign mode helpers
authorKees Cook <keescook@chromium.org>
Wed, 25 Jun 2014 22:38:02 +0000 (15:38 -0700)
committerJP Abgrall <jpa@google.com>
Tue, 7 Oct 2014 23:42:31 +0000 (16:42 -0700)
commitb8a9cff6dbe9cfddbb4d17e2dea496e523544687
tree18675906faa2809de14621948fc884bda2756a60
parent2a30a4386e4a7e1283157c4cf4cfcc0306b22ac8
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