summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2021-10-27 11:12:14 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-10-27 11:12:14 +0000
commita09c5cf5e48456e64b40d1970971ed4fb8e95958 (patch)
treefb530e0d302071bab9b3cbfdfe2e7ce424596520
parentf0171ddd40a98aa02c28962494b0d2f08cc57f70 (diff)
parent94e2fc9465e9a2c9d62902b09ed9a18d9250ccd8 (diff)
Allow PROT_EXEC on the zygote mappings when falling back to ashmem am: 94e2fc9465
Original change: https://googleplex-android-review.googlesource.com/c/platform/art/+/16093381 Change-Id: I9de833834a8630e3f9145c00e5b47027ee794d6d
-rw-r--r--runtime/jit/jit_memory_region.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jit/jit_memory_region.cc b/runtime/jit/jit_memory_region.cc
index b0699c42d3..56407f58c0 100644
--- a/runtime/jit/jit_memory_region.cc
+++ b/runtime/jit/jit_memory_region.cc
@@ -556,7 +556,7 @@ bool JitMemoryRegion::ProtectZygoteMemory(int fd, std::string* error_msg) {
return false;
}
} else {
- palette_status_t status = PaletteAshmemSetProtRegion(fd, PROT_READ);
+ palette_status_t status = PaletteAshmemSetProtRegion(fd, PROT_READ | PROT_EXEC);
if (status != PALETTE_STATUS_OK) {
CHECK_EQ(status, PALETTE_STATUS_CHECK_ERRNO);
std::ostringstream oss;