blob: f0f372b48668852a39653bc554bb571a172c6899 [file] [log] [blame]
Jeongik Cha77a3ca62024-04-09 15:02:28 +09001type vmlauncher_app, domain;
2typeattribute vmlauncher_app coredomain;
3
4app_domain(vmlauncher_app)
5
6allow vmlauncher_app app_api_service:service_manager find;
7allow vmlauncher_app system_api_service:service_manager find;
8
9allow vmlauncher_app shell_data_file:dir search;
10allow vmlauncher_app shell_data_file:file { read open write };
11virtualizationservice_use(vmlauncher_app)
12
13is_flag_enabled(RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES, `
14 # TODO(b/332677707): remove them when display service uses binder RPC.
15 allow vmlauncher_app virtualization_service:service_manager find;
16 allow vmlauncher_app virtualizationservice:binder call;
17 allow vmlauncher_app crosvm:binder { call transfer };
18')
Yi-Yo Chiang15bdfcb2024-05-10 18:01:47 +080019
20userdebug_or_eng(`
21 # Create pty/pts and connect it to the guest terminal.
22 create_pty(vmlauncher_app)
23 # Allow other processes to access the pts.
24 allow vmlauncher_app vmlauncher_app_devpts:chr_file setattr;
25')