OSDN Git Service

UPSTREAM: arm64/ptrace: run seccomp after ptrace
authorKees Cook <keescook@chromium.org>
Thu, 2 Jun 2016 19:28:52 +0000 (12:28 -0700)
committerGreg Hackmann <ghackmann@google.com>
Tue, 27 Nov 2018 21:12:12 +0000 (21:12 +0000)
commit68fd1017db7c1db94ad6ff93cd1b127aca47b42a
treef259d4a7fb3d1fd5b3cc4d3ef3f3c901a7151cde
parentd5ea505d8bc7339ec14bc3837dcfbdfaf3d68478
UPSTREAM: 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
(cherry picked from commit a5cd110cb8369d6b37ef5ccfe56b3fa1338c9615)

Bug: 119769499
Change-Id: I9fd3e8e6d38122866df434b2676bf7ba0e808e32
Signed-off-by: Greg Hackmann <ghackmann@google.com>
arch/arm64/kernel/ptrace.c