blob: c7c53c2fdd3d8a983c6a2d022a21db99f511bada [file] [log] [blame]
Alan Stokes72cac092021-07-21 12:13:19 +01001# dex2oat
2type dex2oat, domain, coredomain;
3type dex2oat_exec, system_file_type, exec_type, file_type;
4
5allow dex2oat tmpfs:file { read getattr map };
Victor Hsiehaa987aa2021-08-10 16:33:32 -07006
7# Allow dex2oat to use FDs from authfs_service via compos.
8allow dex2oat authfs_service:fd use;
9allow dex2oat compos:fd use;
Victor Hsiehf97cc1f2021-11-30 14:43:47 -080010allow dex2oat odrefresh:fd use;
Victor Hsiehaa987aa2021-08-10 16:33:32 -070011
12# Allow dex2oat to read/write FDs on authfs_fuse filesystem.
Victor Hsiehdedb4902021-08-19 13:59:37 -070013allow dex2oat authfs_fuse:file { read write getattr map };
Victor Hsiehaa987aa2021-08-10 16:33:32 -070014
Victor Hsiehe2a4d0c2021-12-15 10:57:35 -080015# Allow to search in authfs directories.
16allow dex2oat authfs_data_file:dir { search };
17allow dex2oat authfs_fuse:dir { search };
18
Victor Hsiehaa987aa2021-08-10 16:33:32 -070019# Minijail uses pipe for the parent process to signal the child (as a fallback
20# mechanism, since Android does not support minijail's preload).
21# TODO(196109647): We can probably remove this once the minijail preload is
22# supported on Android.
23allow dex2oat compos:fifo_file read;
24
25# Allow acquiring advisory lock on /system/framework/<arch>/*
26allow dex2oat system_file:file lock;
27
28# Allow dex2oat to read /apex/apex-info-list.xml
29allow dex2oat apex_info_file:file r_file_perms;
Victor Hsiehb415c732021-12-14 11:06:23 -080030
31# Don't audit because we don't configure the compiler through system properties
Jiyong Parkc9a7de42022-01-19 01:34:32 +090032# in the VM.
33dontaudit dex2oat dalvik_config_prop:file { open read getattr map };
Victor Hsiehb415c732021-12-14 11:06:23 -080034dontaudit dex2oat device_config_runtime_native_prop:file { open read getattr map };