seccomp: create internal mode-setting function
authorKees Cook <keescook@chromium.org>
Wed, 21 May 2014 22:02:11 +0000 (15:02 -0700)
committerJP Abgrall <jpa@google.com>
Tue, 7 Oct 2014 23:42:30 +0000 (16:42 -0700)
commit2a30a4386e4a7e1283157c4cf4cfcc0306b22ac8
treeb674963675939d04ac1477d5901a3c1608a2a352
parent987a0f1102321853565c4bfecde6a5a58ac6db11
seccomp: create internal mode-setting function

In preparation for having other callers of the seccomp mode setting
logic, split the prctl entry point away from the core logic that performs
seccomp mode setting.

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