vendor: add policies for netd

Required due to CAF's abc9c0f4fe574ee9847f118e5d2ae8c530bac650 in
system/netd

Fixes showing how many devices are connected to the tethered hotspot

Change-Id: I1d83f7ac0b28efa6973e0baf429de2a398c471e3
This commit is contained in:
Pawit Pornkitprasan 2014-11-27 20:18:18 +07:00 committed by Steve Kondik
parent 9e0dba30b7
commit e815923b0d
4 changed files with 9 additions and 0 deletions

1
sepolicy/hostapd.te Normal file
View File

@ -0,0 +1 @@
allow hostapd netd:unix_dgram_socket sendto;

View File

@ -2,3 +2,7 @@ allow netd self:capability { setuid sys_module setgid };
allow netd self:packet_socket create_socket_perms;
allow netd radio_data_file:dir rw_dir_perms;
allow netd radio_data_file:file create_file_perms;
allow netd wpa_socket:dir rw_dir_perms;
allow netd wpa_socket:sock_file create_file_perms;
allow netd system_wpa_socket:sock_file create_file_perms;
allow netd hostapd:unix_dgram_socket sendto;

View File

@ -15,6 +15,7 @@ BOARD_SEPOLICY_UNION += \
service_contexts \
auditd.te \
healthd.te \
hostapd.te \
installd.te \
netd.te \
property.te \

View File

@ -3,3 +3,6 @@ allow system_server dalvikcache_data_file:file write;
# allow adb related properties to be set
allow system_server adbtcp_prop:property_service set;
allow system_server dhcp_data_file:dir r_dir_perms;
allow system_server dhcp_data_file:file r_file_perms;