MIPS/ptrace: run seccomp after ptrace
authorKees Cook <keescook@chromium.org>
Thu, 2 Jun 2016 19:33:44 +0000 (12:33 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 14 Jun 2016 17:54:44 +0000 (10:54 -0700)
commit2ac3c8d18ed136827ad41786f30c6ed396429660
tree90df0c0d779c556a9942360283178a29ec57e60b
parenta5cd110cb8369d6b37ef5ccfe56b3fa1338c9615
MIPS/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: Ralf Baechle <ralf@linux-mips.org>
Cc: "Maciej W. Rozycki" <macro@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
arch/mips/kernel/ptrace.c