summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Yun2018-02-18 19:42:42 -0600
committerJustin Yun2018-02-18 19:42:42 -0600
commit40ecb9abf2b02f5d1fe571719c566457c56d7cfe (patch)
tree31660d1f3584eae301c1957f7f18ad3abb72d7b2 /debuggerd/seccomp_policy/crash_dump.policy.def
parent277a95bfef00baffbe66fef10e3828d827e16641 (diff)
downloadplatform-system-core-40ecb9abf2b02f5d1fe571719c566457c56d7cfe.tar.gz
platform-system-core-40ecb9abf2b02f5d1fe571719c566457c56d7cfe.tar.xz
platform-system-core-40ecb9abf2b02f5d1fe571719c566457c56d7cfe.zip
Define PROT_READ and PROT_WRITE when generating the policy files
When generating crash_dump.*.policy, replace PROT_READ and PROT_WRITE to numeric constants to make the policy backward compatible with old libminijail.so. Bug: 73273658 Test: use the new policy in OMR1 devices Change-Id: I936a733340ad4df8aef6562c03eb10c29ffdada2
Diffstat (limited to 'debuggerd/seccomp_policy/crash_dump.policy.def')
-rw-r--r--debuggerd/seccomp_policy/crash_dump.policy.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/debuggerd/seccomp_policy/crash_dump.policy.def b/debuggerd/seccomp_policy/crash_dump.policy.def
index b78c94a2b..9190ed749 100644
--- a/debuggerd/seccomp_policy/crash_dump.policy.def
+++ b/debuggerd/seccomp_policy/crash_dump.policy.def
@@ -33,6 +33,8 @@ rt_sigaction: 1
33rt_tgsigqueueinfo: 1 33rt_tgsigqueueinfo: 1
34 34
35#define PR_SET_VMA 0x53564d41 35#define PR_SET_VMA 0x53564d41
36#define PROT_READ 0x1
37#define PROT_WRITE 0x2
36prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == PR_SET_VMA 38prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == PR_SET_VMA
37 39
38madvise: 1 40madvise: 1