1# Network utilities (radio process) 2type netmgrd, domain, domain_deprecated; 3type netmgrd_exec, exec_type, file_type; 4 5# Started by init 6init_daemon_domain(netmgrd) 7 8net_domain(netmgrd) 9allow netmgrd self:capability { setuid setgid net_admin net_raw }; 10dontaudit netmgrd self:capability setpcap; 11 12set_prop(netmgrd, net_radio_prop) 13 14allow netmgrd self:netlink_socket create_socket_perms; 15allow netmgrd self:netlink_route_socket nlmsg_write; 16allow netmgrd self:netlink_xfrm_socket { create_socket_perms nlmsg_write nlmsg_read}; 17allow netmgrd self:socket create_socket_perms; 18allow netmgrd netd_socket:sock_file w_file_perms; 19allow netmgrd net_data_file:dir r_dir_perms; 20allow netmgrd net_data_file:file r_file_perms; 21 22allow netmgrd shell_exec:file rx_file_perms; 23allow netmgrd system_file:file rx_file_perms; 24 25allow netmgrd sysfs_msm_subsys:dir r_dir_perms; 26allow netmgrd sysfs_msm_subsys:lnk_file r_file_perms; 27 28# Access to /proc/sys/net/* 29allow netmgrd proc_net:file rw_file_perms; 30allow netmgrd proc_net:dir r_dir_perms; 31 32qmux_socket(netmgrd) 33 34userdebug_or_eng(` 35 allow netmgrd shared_log_device:chr_file rw_file_perms; 36 allow netmgrd diag_device:chr_file rw_file_perms; 37') 38 39# execute toybox/toolbox 40allow netmgrd toolbox_exec:file rx_file_perms; 41 42#Allow netmgrd to use wakelock 43wakelock_use(netmgrd) 44