]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16306bd3a8da9a35dc486cbce1bd12aacb843661
tree90df0c0d779c556a9942360283178a29ec57e60b
parentccaa1a28155bd27e6f4be5f1c80dfe44eaff4b29
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