blob: bf44251819c9bc0dbd43a51afdf5bff8ac04a3fd [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;
10
11# Allow dex2oat to read/write FDs on authfs_fuse filesystem.
Victor Hsiehdedb4902021-08-19 13:59:37 -070012allow dex2oat authfs_fuse:file { read write getattr map };
Victor Hsiehaa987aa2021-08-10 16:33:32 -070013
14# Minijail uses pipe for the parent process to signal the child (as a fallback
15# mechanism, since Android does not support minijail's preload).
16# TODO(196109647): We can probably remove this once the minijail preload is
17# supported on Android.
18allow dex2oat compos:fifo_file read;
19
20# Allow acquiring advisory lock on /system/framework/<arch>/*
21allow dex2oat system_file:file lock;
22
23# Allow dex2oat to read /apex/apex-info-list.xml
24allow dex2oat apex_info_file:file r_file_perms;