aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Zhang <paulz@codeaurora.org>2014-09-16 10:53:38 +0800
committerLinux Build Service Account <lnxbuild@localhost>2014-11-04 08:22:34 -0700
commit67d9cba152fa5ed1e6d41880d546c06a0ba75488 (patch)
treea11be89c651a9bdbbec1759ec2c03304c9445a7d
parent73a2b7321306ab5e96aea16ce7c584e10e639388 (diff)
downloadandroid_external_sepolicy-staging/cm-12.0-caf.tar.gz
android_external_sepolicy-staging/cm-12.0-caf.tar.bz2
android_external_sepolicy-staging/cm-12.0-caf.zip
Netd: receive broadcast message from hostapdstaging/cm-12.0-caf
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
-rw-r--r--netd.te6
1 files changed, 5 insertions, 1 deletions
diff --git a/netd.te b/netd.te
index 81275a7..b27628c 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;