commit | 78668ac7c707fbec5edea3e8e4c96a4d65784794 | [log] [tgz] |
---|---|---|
author | Chong Zhang <chz@google.com> | Tue Mar 10 16:15:45 2020 -0700 |
committer | Chong Zhang <chz@google.com> | Tue Mar 10 23:39:14 2020 +0000 |
tree | 16ca6a206a3bc7877178eb478d32f598b0e3e6af | |
parent | 6b4d9a1f19aba17aa923369b17316500934ba7d1 [diff] |
allow mremap to use MEMRMREMAP_MAYMOVE flag bug: 151163101 test: see bug, shouldn't see crash in mediacodec minijail Change-Id: If25dc5a56fe2f549d7867aa5a459b949be7e6947
diff --git a/services/mediacodec/seccomp_policy/mediacodec-arm.policy b/services/mediacodec/seccomp_policy/mediacodec-arm.policy index 835f8bb..b4a9ff6 100644 --- a/services/mediacodec/seccomp_policy/mediacodec-arm.policy +++ b/services/mediacodec/seccomp_policy/mediacodec-arm.policy
@@ -23,7 +23,7 @@ # on ARM is statically loaded at 0xffff 0000. See # http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html # for more details. -mremap: arg3 == 3 +mremap: arg3 == 3 || arg3 == MREMAP_MAYMOVE munmap: 1 mprotect: 1 madvise: 1
diff --git a/services/mediacodec/seccomp_policy/mediacodec-arm64.policy b/services/mediacodec/seccomp_policy/mediacodec-arm64.policy index 835f8bb..b4a9ff6 100644 --- a/services/mediacodec/seccomp_policy/mediacodec-arm64.policy +++ b/services/mediacodec/seccomp_policy/mediacodec-arm64.policy
@@ -23,7 +23,7 @@ # on ARM is statically loaded at 0xffff 0000. See # http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html # for more details. -mremap: arg3 == 3 +mremap: arg3 == 3 || arg3 == MREMAP_MAYMOVE munmap: 1 mprotect: 1 madvise: 1
diff --git a/services/mediacodec/seccomp_policy/mediaswcodec-arm.policy b/services/mediacodec/seccomp_policy/mediaswcodec-arm.policy index 512e675..9058f10 100644 --- a/services/mediacodec/seccomp_policy/mediaswcodec-arm.policy +++ b/services/mediacodec/seccomp_policy/mediaswcodec-arm.policy
@@ -31,7 +31,7 @@ # on ARM is statically loaded at 0xffff 0000. See # http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html # for more details. -mremap: arg3 == 3 +mremap: arg3 == 3 || arg3 == MREMAP_MAYMOVE munmap: 1 prctl: 1 getuid32: 1
diff --git a/services/mediacodec/seccomp_policy/mediaswcodec-arm64.policy b/services/mediacodec/seccomp_policy/mediaswcodec-arm64.policy index d9603ef..4c51a9c 100644 --- a/services/mediacodec/seccomp_policy/mediaswcodec-arm64.policy +++ b/services/mediacodec/seccomp_policy/mediaswcodec-arm64.policy
@@ -35,7 +35,7 @@ # on ARM is statically loaded at 0xffff 0000. See # http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0211h/Babfeega.html # for more details. -mremap: arg3 == 3 +mremap: arg3 == 3 || arg3 == MREMAP_MAYMOVE munmap: 1 prctl: 1 writev: 1