summaryrefslogtreecommitdiffstats
path: root/common/netd.te
blob: b5fdecc5ffd01450dd3f58423f814af4db53525c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#Policies for IPv6 tethering
allow netd netd:capability { setgid setuid };
allow netd netd:packet_socket { create bind setopt read ioctl };

# See change I4dd0326110c655fcd6cd5f8425be523d9e64ffa7 to system/netd
type_transition netd wifi_data_file:dir wpa_socket "sockets";
allow netd wpa_socket:dir create_dir_perms;

dontaudit netd self:capability sys_module;

#needed for ipt_TCPMSS and ip6t_TCPMSS
allow netd kernel:system module_request;
unix_socket_connect(netd, cnd, cnd)

# allow to read /data/misc/ipa/tether_stats file
r_dir_file(netd, ipacm_data_file)