blob: 8597fcdf23709a38d431868ef4f628686bac7d16 [file] [log] [blame]
Jeongik Cha77a3ca62024-04-09 15:02:28 +09001type vmlauncher_app, domain;
2typeattribute vmlauncher_app coredomain;
3
4app_domain(vmlauncher_app)
Jeongik Chafd128072024-09-20 18:08:17 +09005net_domain(vmlauncher_app)
Jeongik Cha77a3ca62024-04-09 15:02:28 +09006
7allow vmlauncher_app app_api_service:service_manager find;
8allow vmlauncher_app system_api_service:service_manager find;
9
10allow vmlauncher_app shell_data_file:dir search;
11allow vmlauncher_app shell_data_file:file { read open write };
12virtualizationservice_use(vmlauncher_app)
13
Akilesh Kailash0acb5112024-10-14 22:58:41 -070014allow vmlauncher_app fsck_exec:file { r_file_perms execute execute_no_trans };
15
Jeongik Cha77a3ca62024-04-09 15:02:28 +090016is_flag_enabled(RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES, `
17 # TODO(b/332677707): remove them when display service uses binder RPC.
18 allow vmlauncher_app virtualization_service:service_manager find;
19 allow vmlauncher_app virtualizationservice:binder call;
20 allow vmlauncher_app crosvm:binder { call transfer };
21')
Yi-Yo Chiang15bdfcb2024-05-10 18:01:47 +080022
Seungjae Yood1d66022024-10-31 10:08:37 +090023is_flag_enabled(RELEASE_AVF_ENABLE_NETWORK, `
24 allow vmlauncher_app self:vsock_socket { create_socket_perms_no_ioctl listen accept };
25')
26
Yi-Yo Chiang15bdfcb2024-05-10 18:01:47 +080027userdebug_or_eng(`
28 # Create pty/pts and connect it to the guest terminal.
29 create_pty(vmlauncher_app)
30 # Allow other processes to access the pts.
31 allow vmlauncher_app vmlauncher_app_devpts:chr_file setattr;
32')
Jaewan Kimaff35ea2024-10-14 17:00:52 +090033
34# TODO(b/372664601): Remove this when we don't need linux_vm_setup
35set_prop(vmlauncher_app, debug_prop);