blob: e41533b54a5bb2424d42315120b66c1af42f0aab [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
Alan Stokes8788f7a2021-11-19 17:33:34 +00004# Host dynamic AIDL services
Alan Stokesd376e202021-09-09 17:08:15 +01005init_daemon_domain(composd)
6binder_use(composd)
7add_service(composd, compos_service)
Alan Stokes8788f7a2021-11-19 17:33:34 +00008add_service(composd, compos_internal_service)
Alan Stokesd376e202021-09-09 17:08:15 +01009
Alan Stokes9112c9a2021-10-19 16:50:24 +010010# Call back into system server
11binder_call(composd, system_server)
12
Alan Stokesd376e202021-09-09 17:08:15 +010013# Start a VM
14virtualizationservice_use(composd)
15
16# Access our APEX data files
17allow composd apex_module_data_file:dir search;
18allow composd apex_compos_data_file:dir create_dir_perms;
19allow composd apex_compos_data_file:file create_file_perms;
Alan Stokesd3438b02021-09-15 14:28:12 +010020
Alan Stokes9112c9a2021-10-19 16:50:24 +010021# TODO(b/205750213): Removed these when we run odrefresh in the VM
22# Run odrefresh to refresh ART artifacts, and kill it if we need to
Alan Stokesd3438b02021-09-15 14:28:12 +010023domain_auto_trans(composd, odrefresh_exec, odrefresh)
Alan Stokes9112c9a2021-10-19 16:50:24 +010024allow composd odrefresh:process sigkill;
Victor Hsieh1f117c262021-12-01 15:25:23 -080025
26# Read ART's properties
27get_prop(composd, dalvik_config_prop)