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:
parent
9e0dba30b7
commit
e815923b0d
1
sepolicy/hostapd.te
Normal file
1
sepolicy/hostapd.te
Normal file
@ -0,0 +1 @@
|
|||||||
|
allow hostapd netd:unix_dgram_socket sendto;
|
@ -2,3 +2,7 @@ allow netd self:capability { setuid sys_module setgid };
|
|||||||
allow netd self:packet_socket create_socket_perms;
|
allow netd self:packet_socket create_socket_perms;
|
||||||
allow netd radio_data_file:dir rw_dir_perms;
|
allow netd radio_data_file:dir rw_dir_perms;
|
||||||
allow netd radio_data_file:file create_file_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;
|
||||||
|
@ -15,6 +15,7 @@ BOARD_SEPOLICY_UNION += \
|
|||||||
service_contexts \
|
service_contexts \
|
||||||
auditd.te \
|
auditd.te \
|
||||||
healthd.te \
|
healthd.te \
|
||||||
|
hostapd.te \
|
||||||
installd.te \
|
installd.te \
|
||||||
netd.te \
|
netd.te \
|
||||||
property.te \
|
property.te \
|
||||||
|
@ -3,3 +3,6 @@ allow system_server dalvikcache_data_file:file write;
|
|||||||
|
|
||||||
# allow adb related properties to be set
|
# allow adb related properties to be set
|
||||||
allow system_server adbtcp_prop:property_service 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user