diff --git a/prebuilts/api/30.0/private/coredomain.te b/prebuilts/api/30.0/private/coredomain.te index ab731f122..86e800962 100644 --- a/prebuilts/api/30.0/private/coredomain.te +++ b/prebuilts/api/30.0/private/coredomain.te @@ -22,6 +22,7 @@ full_treble_only(` coredomain -appdomain -dex2oat + -dexoptanalyzer -idmap -init -installd @@ -38,6 +39,7 @@ full_treble_only(` coredomain -appdomain -dex2oat + -dexoptanalyzer -idmap -init -installd diff --git a/prebuilts/api/30.0/private/dexoptanalyzer.te b/prebuilts/api/30.0/private/dexoptanalyzer.te index 1f9246230..a2b2b018d 100644 --- a/prebuilts/api/30.0/private/dexoptanalyzer.te +++ b/prebuilts/api/30.0/private/dexoptanalyzer.te @@ -3,6 +3,10 @@ type dexoptanalyzer, domain, coredomain, mlstrustedsubject; type dexoptanalyzer_exec, system_file_type, exec_type, file_type; type dexoptanalyzer_tmpfs, file_type; +r_dir_file(dexoptanalyzer, apk_data_file) +# Access to /vendor/app +r_dir_file(dexoptanalyzer, vendor_app_file) + # Reading an APK opens a ZipArchive, which unpack to tmpfs. # Use tmpfs_domain() which will give tmpfs files created by dexoptanalyzer their # own label, which differs from other labels created by other processes. diff --git a/private/coredomain.te b/private/coredomain.te index ab731f122..86e800962 100644 --- a/private/coredomain.te +++ b/private/coredomain.te @@ -22,6 +22,7 @@ full_treble_only(` coredomain -appdomain -dex2oat + -dexoptanalyzer -idmap -init -installd @@ -38,6 +39,7 @@ full_treble_only(` coredomain -appdomain -dex2oat + -dexoptanalyzer -idmap -init -installd diff --git a/private/dexoptanalyzer.te b/private/dexoptanalyzer.te index 1f9246230..a2b2b018d 100644 --- a/private/dexoptanalyzer.te +++ b/private/dexoptanalyzer.te @@ -3,6 +3,10 @@ type dexoptanalyzer, domain, coredomain, mlstrustedsubject; type dexoptanalyzer_exec, system_file_type, exec_type, file_type; type dexoptanalyzer_tmpfs, file_type; +r_dir_file(dexoptanalyzer, apk_data_file) +# Access to /vendor/app +r_dir_file(dexoptanalyzer, vendor_app_file) + # Reading an APK opens a ZipArchive, which unpack to tmpfs. # Use tmpfs_domain() which will give tmpfs files created by dexoptanalyzer their # own label, which differs from other labels created by other processes.