2021-09-09 18:08:15 +02:00
|
|
|
type composd, domain, coredomain;
|
|
|
|
type composd_exec, system_file_type, exec_type, file_type;
|
|
|
|
|
2021-11-19 18:33:34 +01:00
|
|
|
# Host dynamic AIDL services
|
2021-09-09 18:08:15 +02:00
|
|
|
init_daemon_domain(composd)
|
|
|
|
binder_use(composd)
|
|
|
|
add_service(composd, compos_service)
|
2021-11-19 18:33:34 +01:00
|
|
|
add_service(composd, compos_internal_service)
|
2021-09-09 18:08:15 +02:00
|
|
|
|
2021-10-19 17:50:24 +02:00
|
|
|
# Call back into system server
|
|
|
|
binder_call(composd, system_server)
|
|
|
|
|
2021-09-09 18:08:15 +02:00
|
|
|
# Start a VM
|
|
|
|
virtualizationservice_use(composd)
|
|
|
|
|
|
|
|
# Access our APEX data files
|
|
|
|
allow composd apex_module_data_file:dir search;
|
|
|
|
allow composd apex_compos_data_file:dir create_dir_perms;
|
|
|
|
allow composd apex_compos_data_file:file create_file_perms;
|
2021-09-15 15:28:12 +02:00
|
|
|
|
2021-10-19 17:50:24 +02:00
|
|
|
# TODO(b/205750213): Removed these when we run odrefresh in the VM
|
|
|
|
# Run odrefresh to refresh ART artifacts, and kill it if we need to
|
2021-09-15 15:28:12 +02:00
|
|
|
domain_auto_trans(composd, odrefresh_exec, odrefresh)
|
2021-10-19 17:50:24 +02:00
|
|
|
allow composd odrefresh:process sigkill;
|