Skip to content
Snippets Groups Projects
Commit 6949a392 authored by Nicolas Geoffray's avatar Nicolas Geoffray
Browse files

Allow zygote to JIT.

bug: 110870380
Test: device boots, artificially creating a rwx mapping in zygote works.

Change-Id: I81a32b616a68f186867af25528a0348d1ad73a50
parent f0dc0936
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,9 @@ allow zygote resourcecache_data_file:file create_file_perms; ...@@ -48,6 +48,9 @@ allow zygote resourcecache_data_file:file create_file_perms;
# https://bugs.chromium.org/p/project-zero/issues/detail?id=955 for example. # https://bugs.chromium.org/p/project-zero/issues/detail?id=955 for example.
allow { zygote with_dexpreopt(`-zygote') } dalvikcache_data_file:file execute; allow { zygote with_dexpreopt(`-zygote') } dalvikcache_data_file:file execute;
# Allow zygote to create JIT memory.
allow zygote self:process execmem;
# Execute idmap and dex2oat within zygote's own domain. # Execute idmap and dex2oat within zygote's own domain.
# TODO: Should either of these be transitioned to the same domain # TODO: Should either of these be transitioned to the same domain
# used by installd or stay in-domain for zygote? # used by installd or stay in-domain for zygote?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment