seccomp: hoist out filter resolving logic
authorTycho Andersen <[email protected]>
Wed, 11 Oct 2017 15:39:20 +0000 (09:39 -0600)
committerKees Cook <[email protected]>
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 <[email protected]>
CC: Kees Cook <[email protected]>
CC: Andy Lutomirski <[email protected]>
CC: Oleg Nesterov <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
kernel/seccomp.c