[PATCH v9 02/11] seccomp: extract check/assign mode helpers

2014-06-27 Thread Kees Cook
To support splitting mode 1 from mode 2, extract the mode checking and assignment logic into common functions. Signed-off-by: Kees Cook --- kernel/seccomp.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/kernel/seccomp.c b/kernel/seccomp.c index

[PATCH v9 02/11] seccomp: extract check/assign mode helpers

2014-06-27 Thread Kees Cook
To support splitting mode 1 from mode 2, extract the mode checking and assignment logic into common functions. Signed-off-by: Kees Cook keesc...@chromium.org --- kernel/seccomp.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/kernel/seccomp.c