summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-10-03 21:18:34 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-03 21:18:34 -0700
commit65c6fd600c3ef8e660145e3215097a022632554f (patch)
tree017d8544bdf7cbe011534d9ba5d0dc176da6234c
parentdcde27f184b6d5222794cf6ba51487324464eb67 (diff)
parent894035f3315543549a1981e60295d6c707e163d7 (diff)
downloadandroid_device_qcom_sepolicy-65c6fd600c3ef8e660145e3215097a022632554f.tar.gz
android_device_qcom_sepolicy-65c6fd600c3ef8e660145e3215097a022632554f.tar.bz2
android_device_qcom_sepolicy-65c6fd600c3ef8e660145e3215097a022632554f.zip
Merge "Permissions needed for LOWI"
-rw-r--r--common/location.te6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/location.te b/common/location.te
index 393bae60..a72adc11 100644
--- a/common/location.te
+++ b/common/location.te
@@ -41,7 +41,11 @@ allow location sensors_persist_file:dir r_dir_perms;
allow location sensors_persist_file:file r_file_perms;
#wifi
-allow location wifi_data_file:dir r_dir_perms;
+userdebug_or_eng(`
+allow location wifi_data_file:dir create_dir_perms;
+allow location wifi_data_file:sock_file create_file_perms;
+allow location su:unix_dgram_socket sendto;
+')
unix_socket_send(wpa, location, location)
allow location wpa:unix_dgram_socket sendto;
allow location wpa_socket:dir rw_dir_perms;