summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorrsesek <rsesek@chromium.org>2016-02-05 14:57:38 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-05 22:58:47 +0000
commit4fe32a5a3c3c5db910517f70f45ea03ee1c676ed (patch)
tree7c41e826436295d7f556e8c28254892766516528 /sandbox
parent4e7c2b3384ce41324ec60f84cd36d063b6db6d76 (diff)
downloadchromium_src-4fe32a5a3c3c5db910517f70f45ea03ee1c676ed.zip
chromium_src-4fe32a5a3c3c5db910517f70f45ea03ee1c676ed.tar.gz
chromium_src-4fe32a5a3c3c5db910517f70f45ea03ee1c676ed.tar.bz2
[Android] Fix Microdump generation when Seccomp-BPF is enabled.
BUG=584518,439573 Review URL: https://codereview.chromium.org/1669043003 Cr-Commit-Position: refs/heads/master@{#373934}
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc6
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())