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>
Thu, 28 Aug 2014 01:50:55 +0000 (01:50 +0000)
commitc208e4e9f119bc9cd0c444344de6407c0d373a2c
treed8757c72632b0106d56dcd7c51f9dd8d5044902e
parent6862b0143649033ca56fd460684e632b35a59abc
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