arm64/ptrace: run seccomp after ptrace
authorKees Cook <keescook@chromium.org>
Thu, 2 Jun 2016 19:28:52 +0000 (12:28 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 14 Jun 2016 17:54:43 +0000 (10:54 -0700)
commita5cd110cb8369d6b37ef5ccfe56b3fa1338c9615
treec177ca1e824ad48939000fbd8c6df29e3ef84498
parent0f3912fd934cdfd03d93f2dc6f064099795bf638
arm64/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: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
arch/arm64/kernel/ptrace.c