1 type cnd, domain, device_domain_deprecated; 2 type cnd_exec, exec_type, file_type; 3 4 # Started by init 5 init_daemon_domain(cnd) 6 7 userdebug_or_eng(` 8 allow cnd shared_log_device:chr_file rw_file_perms; 9 ') 10 11 allow cnd self:capability { setuid setgid net_raw }; 12 13 allow cnd self:socket create_socket_perms; 14 allowxperm cnd self:socket ioctl msm_sock_ipc_ioctls; 15 allow cnd self:udp_socket create_socket_perms; 16 17 allow cnd sysfs_msm_subsys:dir r_dir_perms; 18 allow cnd sysfs_msm_subsys:lnk_file rw_file_perms; 19 20 qmux_socket(cnd) 21 wakelock_use(cnd) 22