seccomp: split mode setting routines
authorKees Cook <keescook@chromium.org>
Wed, 25 Jun 2014 22:55:25 +0000 (15:55 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 18 Jul 2014 19:13:37 +0000 (12:13 -0700)
commit3b23dd12846215eff4afb073366b80c0c4d7543e
treea1c32b31840891799098d2842fefd2d5b06d2fc5
parent1f41b450416e689b9b7c8bfb750a98604f687a9b
seccomp: split mode setting routines

Separates the two mode setting paths to make things more readable with
fewer #ifdefs within function bodies.

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