blob: e8eed07d8540ea4b046874f04116fa7498efd9c7 [file] [log] [blame]
# Network utilities (radio process)
type netmgrd, domain, device_domain_deprecated;
type netmgrd_exec, exec_type, file_type;
# Started by init
init_daemon_domain(netmgrd)
net_domain(netmgrd)
allowxperm netmgrd self:udp_socket ioctl priv_sock_ioctls;
allow netmgrd self:capability { setuid setgid net_admin net_raw };
dontaudit netmgrd self:capability setpcap;
set_prop(netmgrd, net_radio_prop)
allow netmgrd self:netlink_socket create_socket_perms_no_ioctl;
allow netmgrd self:netlink_route_socket nlmsg_write;
allow netmgrd self:netlink_xfrm_socket { create_socket_perms_no_ioctl nlmsg_write nlmsg_read};
allow netmgrd self:socket create_socket_perms;
allowxperm netmgrd self:socket ioctl msm_sock_ipc_ioctls;
allow netmgrd netd_socket:sock_file w_file_perms;
allow netmgrd net_data_file:dir r_dir_perms;
allow netmgrd net_data_file:file r_file_perms;
allow netmgrd shell_exec:file rx_file_perms;
allow netmgrd system_file:file rx_file_perms;
allow netmgrd vendor_file_type:file rx_file_perms;
allow netmgrd sysfs_msm_subsys:dir r_dir_perms;
allow netmgrd sysfs_msm_subsys:lnk_file r_file_perms;
# Access to /proc/sys/net/*
allow netmgrd proc_net:file rw_file_perms;
allow netmgrd proc_net:dir r_dir_perms;
qmux_socket(netmgrd)
userdebug_or_eng(`
allow netmgrd shared_log_device:chr_file rw_file_perms;
allow netmgrd diag_device:chr_file rw_file_perms;
')
# execute toybox/toolbox
allow netmgrd toolbox_exec:file rx_file_perms;
#Allow netmgrd to use wakelock
wakelock_use(netmgrd)