diff options
author | rsesek <rsesek@chromium.org> | 2016-02-06 11:09:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-06 19:11:10 +0000 |
commit | 91272670b07051ea6aa323c14598977c9a82942a (patch) | |
tree | 5bc1734f001bab6c218380e1bfe47b1296f82c25 /sandbox | |
parent | dd4def0512c03f45ddd2f33191a667966fcb76dc (diff) | |
download | chromium_src-91272670b07051ea6aa323c14598977c9a82942a.zip chromium_src-91272670b07051ea6aa323c14598977c9a82942a.tar.gz chromium_src-91272670b07051ea6aa323c14598977c9a82942a.tar.bz2 |
[Android] Fix Microdump generation when Seccomp-BPF is enabled.
BUG=584518,439573
Originally Committed: https://crrev.com/4fe32a5a3c3c5db910517f70f45ea03ee1c676ed
Reverted: https://crrev.com/d8166bd9a4c900c9a8079c9e7b4d3e750b497f51
Review URL: https://codereview.chromium.org/1669043003
Cr-Commit-Position: refs/heads/master@{#374043}
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc index 4b98366..57bffc0 100644 --- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc +++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc @@ -52,6 +52,10 @@ #define PR_SET_TIMERSLACK_PID 41 #endif +#ifndef PR_SET_PTRACER +#define PR_SET_PTRACER 0x59616d61 +#endif + #endif // defined(OS_ANDROID) #if defined(__arm__) && !defined(MAP_STACK) @@ -143,7 +147,7 @@ ResultExpr RestrictPrctl() { .CASES((PR_GET_NAME, PR_SET_NAME, PR_GET_DUMPABLE, PR_SET_DUMPABLE #if defined(OS_ANDROID) , - PR_SET_VMA, PR_SET_TIMERSLACK_PID + PR_SET_VMA, PR_SET_TIMERSLACK_PID, PR_SET_PTRACER #endif ), Allow()) |