blob: 5edea69a8ce8831a04fadfaaa801ba9d65a21828 [file] [log] [blame]
Alan Stokesd376e202021-09-09 17:08:15 +01001type composd, domain, coredomain;
2type composd_exec, system_file_type, exec_type, file_type;
3
4# Host a dynamic AIDL service
5init_daemon_domain(composd)
6binder_use(composd)
7add_service(composd, compos_service)
8
Alan Stokes9112c9a2021-10-19 16:50:24 +01009# Call back into system server
10binder_call(composd, system_server)
11
Alan Stokesd376e202021-09-09 17:08:15 +010012# Start a VM
13virtualizationservice_use(composd)
14
15# Access our APEX data files
16allow composd apex_module_data_file:dir search;
17allow composd apex_compos_data_file:dir create_dir_perms;
18allow composd apex_compos_data_file:file create_file_perms;
Alan Stokesd3438b02021-09-15 14:28:12 +010019
Alan Stokes9112c9a2021-10-19 16:50:24 +010020# TODO(b/205750213): Removed these when we run odrefresh in the VM
21# Run odrefresh to refresh ART artifacts, and kill it if we need to
Alan Stokesd3438b02021-09-15 14:28:12 +010022domain_auto_trans(composd, odrefresh_exec, odrefresh)
Alan Stokes9112c9a2021-10-19 16:50:24 +010023allow composd odrefresh:process sigkill;