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>
Thu, 28 Aug 2014 01:50:03 +0000 (01:50 +0000)
commit6862b0143649033ca56fd460684e632b35a59abc
tree75ed773adb9cb25f39604b1fbb5870de1cbb20f5
parent1ba2ccbc8cdcb0881dd91212b2f04318884dfe4a
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