arm/ptrace: run seccomp after ptrace
authorKees Cook <keescook@chromium.org>
Thu, 2 Jun 2016 19:16:31 +0000 (12:16 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 14 Jun 2016 17:54:42 +0000 (10:54 -0700)
commit0f3912fd934cdfd03d93f2dc6f064099795bf638
tree9258e91c5fe29557a9f37d918d9c7ca02a86e525
parent93e35efb8de45393cf61ed07f7b407629bf698ea
arm/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: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
arch/arm/kernel/ptrace.c