um/ptrace: run seccomp after ptrace
authorKees Cook <keescook@chromium.org>
Fri, 3 Jun 2016 02:59:42 +0000 (19:59 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 14 Jun 2016 17:54:47 +0000 (10:54 -0700)
commit26703c636c1f3272b39bd0f6d04d2e970984f1b6
treea23cb02922fdac007e7d97d9d4f40ef12bf0893e
parent635efc702984857b45a2a2491ed7a529e14cbdf9
um/ptrace: run seccomp after ptrace

Close the hole where ptrace can change a syscall out from under seccomp.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: user-mode-linux-devel@lists.sourceforge.net
arch/um/kernel/skas/syscall.c