blob: ed60ec02988470366e1a56f59ac9d527e3a4480a [file] [log] [blame]
Subash Abhinov Kasiviswanathan2c3fed32014-03-12 17:13:13 -06001#Policies for IPv6 tethering
2allow netd netd:capability { setgid setuid };
Biswajit Paul64f83f62014-10-13 14:36:16 -07003dontaudit netd self:capability sys_module;
Bryse Flowers31f25fc2016-05-21 19:00:49 -07004binder_use(netd);
5allow netd qtitetherservice_service:service_manager find;
Ravi Kumar Siddojigari91ffd842014-10-15 17:38:15 +05306
Biswajit Paul2d35d982017-02-01 17:40:10 -08007allow netd netd:packet_socket create_socket_perms_no_ioctl;
Avijit Kanti Das441bad42015-05-12 14:07:41 -07008
Ravi Kumar Siddojigaric7def122017-06-13 00:49:19 +05309#unix_socket_connect(netd, cnd, cnd)
Manu Prasad6b869a82014-12-05 18:53:01 +053010
11allow netd wfdservice:fd use;
Ravi Kumar Siddojigaric7def122017-06-13 00:49:19 +053012#allow netd wfdservice:tcp_socket rw_socket_perms;
Deepak Kushwahf9d0b752017-07-26 15:14:12 +053013hal_client_domain(netd, wifidisplayhalservice);
Ravinder Konkabbe60732015-05-27 17:18:26 +053014
15# allow to read /data/misc/ipa/tether_stats file
16allow netd ipacm_data_file:dir r_dir_perms;
17allow netd ipacm_data_file:file r_file_perms;
Hamad Kadmany567ffc72015-08-27 15:36:39 +030018
Ashwanth Goliad2c7ef2016-06-03 12:55:06 +053019#allow netd to use privileged sock ioctls
20allowxperm netd self: { unix_stream_socket } ioctl priv_sock_ioctls;
21
Hamad Kadmany567ffc72015-08-27 15:36:39 +030022# needed for netd to start FST Manager via system property
23allow netd netd_prop:property_service set;
Sravanthi Palakonda7e92d042015-11-06 16:56:06 +053024
25allow netd self:capability fsetid;
Ravi Kumar Siddojigaric7def122017-06-13 00:49:19 +053026#allow netd hostapd:unix_dgram_socket sendto;
Sravanthi Palakonda7e92d042015-11-06 16:56:06 +053027
28# Allow netd to chmod dir /data/misc/dhcp
29allow netd dhcp_data_file:dir create_dir_perms;
30
31type_transition netd wifi_data_file:dir wpa_socket "sockets";
32allow netd wpa_socket:dir create_dir_perms;
Ravi Kumar Siddojigaric7def122017-06-13 00:49:19 +053033#allow netd wpa_socket:sock_file create_file_perms;