seccomp: hoist out filter resolving logic
authorTycho Andersen <tycho@docker.com>
Wed, 11 Oct 2017 15:39:20 +0000 (09:39 -0600)
committerKees Cook <keescook@chromium.org>
Tue, 28 Nov 2017 23:36:01 +0000 (15:36 -0800)
commitf06eae831f0c1fc5b982ea200daf552810e1dd55
tree47b087ab2288fb3f975947e28992c7c35c3e19c2
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
seccomp: hoist out filter resolving logic

Hoist out the nth filter resolving logic that ptrace uses into a new
function. We'll use this in the next patch to implement the new
PTRACE_SECCOMP_GET_FILTER_FLAGS command.

Signed-off-by: Tycho Andersen <tycho@docker.com>
CC: Kees Cook <keescook@chromium.org>
CC: Andy Lutomirski <luto@amacapital.net>
CC: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
kernel/seccomp.c