summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaio Schnepper <caioschnepper@gmail.com>2016-02-04 09:29:41 -0200
committerCaio Schnepper <caioschnepper@gmail.com>2016-02-04 09:29:41 -0200
commit691144d5a6cfb3b02f6c676363a6a7708a946c46 (patch)
tree28fa532333f6b18b924864525befa570a82eb35f
parent20a3e661ad03f299bd2e5b675472a23ea518c062 (diff)
downloaddevice_samsung_galaxys2-common-691144d5a6cfb3b02f6c676363a6a7708a946c46.zip
device_samsung_galaxys2-common-691144d5a6cfb3b02f6c676363a6a7708a946c46.tar.gz
device_samsung_galaxys2-common-691144d5a6cfb3b02f6c676363a6a7708a946c46.tar.bz2
galaxys2-common: Fix macloader SELinux denial
Change-Id: I4a18462429c662d3377f48f8b0c9c669159bea63
-rw-r--r--selinux/file_contexts1
-rw-r--r--selinux/macloader.te2
2 files changed, 2 insertions, 1 deletions
diff --git a/selinux/file_contexts b/selinux/file_contexts
index 0b7febc..b1e79f2 100644
--- a/selinux/file_contexts
+++ b/selinux/file_contexts
@@ -40,6 +40,7 @@
# WiFi
/dev/rfkill u:object_r:rfkill_device:s0
/efs/wifi/.mac.info u:object_r:wifi_data_file:s0
+/data/.cid.info u:object_r:wifi_data_file:s0
# Firmwares
/system/vendor/firmware/mfc_fw.bin u:object_r:firmware_mfc:s0
diff --git a/selinux/macloader.te b/selinux/macloader.te
index 5799c7c..5e649e6 100644
--- a/selinux/macloader.te
+++ b/selinux/macloader.te
@@ -4,4 +4,4 @@ init_daemon_domain(macloader);
allow macloader efs_file:dir search;
allow macloader efs_device_file:dir search;
-allow macloader wifi_data_file:file { read getattr open };
+allow macloader wifi_data_file:file { read getattr open write setattr };