parisc/ptrace: run seccomp after ptrace
authorKees Cook <keescook@chromium.org>
Thu, 2 Jun 2016 20:15:52 +0000 (13:15 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 14 Jun 2016 17:54:44 +0000 (10:54 -0700)
commit375f0183047109b98658d539db6ff22a6ac24abc
tree494f1be06453a340e0c1a465fbb4952e55e851e2
parent2ac3c8d18ed136827ad41786f30c6ed396429660
parisc/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: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org
arch/parisc/kernel/ptrace.c