blob: 6c398a28926bf74ec776f5f0038790fb6ed738c3 [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
Jaewan Kim4a589732025-03-10 23:20:22 +090010# TODO(b/402303887): Remove this when WebView doesn't requires camera access.
11allow vmlauncher_app cameraserver_service:service_manager find;
12
Jeongik Cha77a3ca62024-04-09 15:02:28 +090013allow vmlauncher_app shell_data_file:dir search;
14allow vmlauncher_app shell_data_file:file { read open write };
15virtualizationservice_use(vmlauncher_app)
16
Akilesh Kailash0acb5112024-10-14 22:58:41 -070017allow vmlauncher_app fsck_exec:file { r_file_perms execute execute_no_trans };
Akilesh Kailashe7cd0eb2024-11-30 08:10:11 -080018allow vmlauncher_app crosvm:fd use;
19allow vmlauncher_app crosvm_tmpfs:file { map read write };
Jiyong Park7ebed472025-03-01 10:24:56 -080020allow vmlauncher_app crosvm_exec:file rx_file_perms;
Akilesh Kailashe7cd0eb2024-11-30 08:10:11 -080021
22allow vmlauncher_app privapp_data_file:sock_file { create unlink write getattr };
Akilesh Kailash0acb5112024-10-14 22:58:41 -070023
Jeongik Cha77a3ca62024-04-09 15:02:28 +090024is_flag_enabled(RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES, `
25 # TODO(b/332677707): remove them when display service uses binder RPC.
26 allow vmlauncher_app virtualization_service:service_manager find;
27 allow vmlauncher_app virtualizationservice:binder call;
28 allow vmlauncher_app crosvm:binder { call transfer };
29')
Yi-Yo Chiang15bdfcb2024-05-10 18:01:47 +080030
Seungjae Yood1d66022024-10-31 10:08:37 +090031is_flag_enabled(RELEASE_AVF_ENABLE_NETWORK, `
32 allow vmlauncher_app self:vsock_socket { create_socket_perms_no_ioctl listen accept };
33')
34
Yi-Yo Chiang15bdfcb2024-05-10 18:01:47 +080035userdebug_or_eng(`
36 # Create pty/pts and connect it to the guest terminal.
37 create_pty(vmlauncher_app)
38 # Allow other processes to access the pts.
39 allow vmlauncher_app vmlauncher_app_devpts:chr_file setattr;
40')
Jaewan Kimaff35ea2024-10-14 17:00:52 +090041
42# TODO(b/372664601): Remove this when we don't need linux_vm_setup
43set_prop(vmlauncher_app, debug_prop);