diff --git a/prebuilts/api/31.0/private/dex2oat.te b/prebuilts/api/31.0/private/dex2oat.te index 28d8b9a09..e7cdd5f12 100644 --- a/prebuilts/api/31.0/private/dex2oat.te +++ b/prebuilts/api/31.0/private/dex2oat.te @@ -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; diff --git a/prebuilts/api/31.0/private/dexoptanalyzer.te b/prebuilts/api/31.0/private/dexoptanalyzer.te index b99349edf..8eb1d2905 100644 --- a/prebuilts/api/31.0/private/dexoptanalyzer.te +++ b/prebuilts/api/31.0/private/dexoptanalyzer.te @@ -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; diff --git a/private/dex2oat.te b/private/dex2oat.te index 28d8b9a09..e7cdd5f12 100644 --- a/private/dex2oat.te +++ b/private/dex2oat.te @@ -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; diff --git a/private/dexoptanalyzer.te b/private/dexoptanalyzer.te index b99349edf..8eb1d2905 100644 --- a/private/dexoptanalyzer.te +++ b/private/dexoptanalyzer.te @@ -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;