Fix braino in dexoptanalyzer policy and add dex2oat postinstall rule.

Test: m
Bug: 190817237
Change-Id: I4f73d7a137f2e2ee9497ca5e4c8ef28b3f86c35c
(cherry picked from commit f82451e0a4)
This commit is contained in:
Nicolas Geoffray 2021-06-22 14:36:08 +01:00
parent 98f9af8bc1
commit 92b18f575d
4 changed files with 4 additions and 2 deletions

View file

@ -79,6 +79,7 @@ allow dex2oat postinstall_file:file { execute getattr open };
# Allow dex2oat access to /postinstall/apex.
allow dex2oat postinstall_apex_mnt_dir:dir { getattr search };
allow dex2oat postinstall_apex_mnt_dir:file r_file_perms;
# Allow dex2oat access to files in /data/ota.
allow dex2oat ota_data_file:dir ra_dir_perms;

View file

@ -53,4 +53,4 @@ get_prop(dexoptanalyzer, device_config_runtime_native_prop)
get_prop(dexoptanalyzer, device_config_runtime_native_boot_prop)
# Allow dexoptanalyzer to read /apex/apex-info-list.xml
allow dex2oat apex_info_file:file r_file_perms;
allow dexoptanalyzer apex_info_file:file r_file_perms;

View file

@ -79,6 +79,7 @@ allow dex2oat postinstall_file:file { execute getattr open };
# Allow dex2oat access to /postinstall/apex.
allow dex2oat postinstall_apex_mnt_dir:dir { getattr search };
allow dex2oat postinstall_apex_mnt_dir:file r_file_perms;
# Allow dex2oat access to files in /data/ota.
allow dex2oat ota_data_file:dir ra_dir_perms;

View file

@ -53,4 +53,4 @@ get_prop(dexoptanalyzer, device_config_runtime_native_prop)
get_prop(dexoptanalyzer, device_config_runtime_native_boot_prop)
# Allow dexoptanalyzer to read /apex/apex-info-list.xml
allow dex2oat apex_info_file:file r_file_perms;
allow dexoptanalyzer apex_info_file:file r_file_perms;