1# goldfish-system-setup service: runs init.qemu-adb-keys.sh script
2type goldfish_system_setup, domain, coredomain;
3type goldfish_system_setup_exec, system_file_type, exec_type, file_type;
4
5init_daemon_domain(goldfish_system_setup)
6
7allow goldfish_system_setup shell_exec:file { rx_file_perms };
8
9# Allow write to /dev/kmsg
10allow goldfish_system_setup kmsg_debug_device:chr_file { w_file_perms getattr ioctl };
11
12# Allow read/write /data/misc/adb/adb_keys
13allow goldfish_system_setup adb_keys_file:file { create setattr rw_file_perms };
14allow goldfish_system_setup adb_keys_file:dir { search add_name write };
15
16allow goldfish_system_setup toolbox_exec:file { getattr execute read open execute_no_trans map };
17