platform_system_sepolicy/dex2oat.te
Calin Juravle de41b3d900 Allow dex2oat to acess profile files
Bug: 26080105
Change-Id: I8075d093bb5adc3d856033be3b3aaa38254e8071
2016-01-14 16:43:34 -08:00

19 lines
692 B
Text

# dex2oat
type dex2oat, domain, mlstrustedsubject, domain_deprecated;
type dex2oat_exec, exec_type, file_type;
allow dex2oat dalvikcache_data_file:file write;
# Read symlinks in /data/dalvik-cache
allow dex2oat dalvikcache_data_file:lnk_file read;
allow dex2oat installd:fd use;
# Read already open asec_apk_file file descriptors passed by installd.
# Also allow reading unlabeled files, to allow for upgrading forward
# locked APKs.
allow dex2oat asec_apk_file:file read;
allow dex2oat unlabeled:file read;
allow dex2oat oemfs:file read;
allow dex2oat apk_tmp_file:file read;
allow dex2oat app_data_file:file {read write lock};
neverallow dex2oat app_data_file:notdevfile_class_set open;