From fd0259afd59f24c02ce50aff25c2b77810ca9fdc Mon Sep 17 00:00:00 2001 From: Paul Zhang Date: Tue, 16 Sep 2014 10:53:38 +0800 Subject: [PATCH] Netd: receive broadcast message from hostapd allow netd to create dir /data/misc/wifi/sockets allow netd to create sockets wpa_ctrl_* allow netd to access dir /data/misc/dhcp Change-Id: Ibd48cd40a61f8e846ae54400dd628eb3287b93bb CRs-Fixed: 685913 --- netd.te | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netd.te b/netd.te index 81275a77..b27628c3 100644 --- a/netd.te +++ b/netd.te @@ -44,7 +44,11 @@ allow netd dhcp:process signal; # these capabilities allow netd self:capability { dac_override chown fowner }; allow netd wifi_data_file:file create_file_perms; -allow netd wifi_data_file:dir rw_dir_perms; +allow netd wifi_data_file:dir create_dir_perms; +allow netd wifi_data_file:sock_file { create setattr unlink write }; + +# Allow netd to chmod dir /data/misc/dhcp +allow netd dhcp_data_file:dir create_dir_perms; # Needed to update /data/misc/net/rt_tables allow netd net_data_file:file create_file_perms;