diff options
author | Kees Cook <keescook@chromium.org> | 2012-02-14 19:48:09 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2012-02-15 18:25:18 -0500 |
commit | bf06189e4d14641c0148bea16e9dd24943862215 (patch) | |
tree | 5c62eb24339041baf65b8e42daac42c7a01efc0e /include | |
parent | 3ab1aff89477dafb1aaeafe8c8669114a02b7226 (diff) |
Yama: add PR_SET_PTRACER_ANY
For a process to entirely disable Yama ptrace restrictions, it can use
the special PR_SET_PTRACER_ANY pid to indicate that any otherwise allowed
process may ptrace it. This is stronger than calling PR_SET_PTRACER with
pid "1" because it includes processes in external pid namespaces. This is
currently needed by the Chrome renderer, since its crash handler (Breakpad)
runs external to the renderer's pid namespace.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/prctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/prctl.h b/include/linux/prctl.h index 4d0e5bc5458c..a0413ac3abe8 100644 --- a/include/linux/prctl.h +++ b/include/linux/prctl.h | |||
@@ -119,5 +119,6 @@ | |||
119 | * A value of 0 mean "no process". | 119 | * A value of 0 mean "no process". |
120 | */ | 120 | */ |
121 | #define PR_SET_PTRACER 0x59616d61 | 121 | #define PR_SET_PTRACER 0x59616d61 |
122 | # define PR_SET_PTRACER_ANY ((unsigned long)-1) | ||
122 | 123 | ||
123 | #endif /* _LINUX_PRCTL_H */ | 124 | #endif /* _LINUX_PRCTL_H */ |