blob: 0f8b90582584eea23440f2d021ea09fca822abd9 [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
15# Minijail uses pipe for the parent process to signal the child (as a fallback
16# mechanism, since Android does not support minijail's preload).
17# TODO(196109647): We can probably remove this once the minijail preload is
18# supported on Android.
19allow dex2oat compos:fifo_file read;
20
21# Allow acquiring advisory lock on /system/framework/<arch>/*
22allow dex2oat system_file:file lock;
23
24# Allow dex2oat to read /apex/apex-info-list.xml
25allow dex2oat apex_info_file:file r_file_perms;