diff options
author | Justin Yun | 2018-02-18 19:42:42 -0600 |
---|---|---|
committer | Justin Yun | 2018-02-18 19:42:42 -0600 |
commit | 40ecb9abf2b02f5d1fe571719c566457c56d7cfe (patch) | |
tree | 31660d1f3584eae301c1957f7f18ad3abb72d7b2 /debuggerd/seccomp_policy/crash_dump.policy.def | |
parent | 277a95bfef00baffbe66fef10e3828d827e16641 (diff) | |
download | platform-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.def | 2 |
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 | |||
33 | rt_tgsigqueueinfo: 1 | 33 | rt_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 | ||
36 | prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == PR_SET_VMA | 38 | prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == PR_SET_VMA |
37 | 39 | ||
38 | madvise: 1 | 40 | madvise: 1 |