2021-03-25 22:22:05 +01:00
|
|
|
type virtmanager, domain, coredomain;
|
|
|
|
type virtmanager_exec, system_file_type, exec_type, file_type;
|
|
|
|
|
2021-03-29 19:19:12 +02:00
|
|
|
# When init runs a file labelled with virtmanager_exec, run it in the virtmanager domain.
|
2021-03-25 22:22:05 +01:00
|
|
|
init_daemon_domain(virtmanager)
|
|
|
|
|
2021-03-29 19:19:12 +02:00
|
|
|
# Let the virtmanager domain use Binder.
|
2021-03-25 22:22:05 +01:00
|
|
|
binder_use(virtmanager)
|
|
|
|
|
2021-03-29 19:19:12 +02:00
|
|
|
# Let the virtmanager domain register the virtualization_service with ServiceManager.
|
2021-03-25 22:22:05 +01:00
|
|
|
add_service(virtmanager, virtualization_service)
|
2021-03-29 19:19:12 +02:00
|
|
|
|
|
|
|
# When virtmanager execs a file with the crosvm_exec label, run it in the crosvm domain.
|
|
|
|
domain_auto_trans(virtmanager, crosvm_exec, crosvm)
|
|
|
|
|
|
|
|
# Let virtmanager kill crosvm.
|
|
|
|
allow virtmanager crosvm:process sigkill;
|