summaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-06-09 12:36:50 -0700
committerGreg Hackmann <ghackmann@google.com>2018-11-27 21:11:56 +0000
commit7f891268d5b80d4b9ee38be1a37cce5959bec00f (patch)
tree210b967d2b6c5674180d55af5d349cdce07930c9 /lib/cpu-notifier-error-inject.c
parent0aa0a57dc4d76af8c6ff5f554d1811a9beab5406 (diff)
BACKPORT: x86/ptrace: run seccomp after ptrace
This moves seccomp after ptrace on x86 to that seccomp can catch changes made by ptrace. Emulation should skip the rest of processing too. We can get rid of test_thread_flag because there's no longer any opportunity for seccomp to mess with ptrace state before invoking ptrace. Suggested-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Cc: x86@kernel.org Cc: Andy Lutomirski <luto@kernel.org> (cherry picked from commit 93e35efb8de45393cf61ed07f7b407629bf698ea) Bug: 119769499 Change-Id: Ie1b9a18360799e68e22f67ce6a819c93433fdeaa [ghackmann@google.com: adjust context] Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions