summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormuluhe <muluhe@codeaurora.org>2016-09-06 18:08:28 +0800
committermuluhe <muluhe@codeaurora.org>2016-09-08 10:13:38 +0800
commit11f908451c1001dabc35c9ea9813e7272e7bce63 (patch)
treee534da17f941fe3d2bd1e1e64dba7f9c6709b225
parentf6e1db1eefa4ea80b88cc9866d8dd1064ad85325 (diff)
downloadandroid_device_qcom_sepolicy-11f908451c1001dabc35c9ea9813e7272e7bce63.tar.gz
android_device_qcom_sepolicy-11f908451c1001dabc35c9ea9813e7272e7bce63.tar.bz2
android_device_qcom_sepolicy-11f908451c1001dabc35c9ea9813e7272e7bce63.zip
sepolicy: Allow mmi access boot mode prop
Allow mmi access "sys.boot_mode" property. CRs-Fixed: 1063804 Change-Id: Idcdddd06df9d959e78ee80a36c890c8560c41350
-rwxr-xr-xcommon/mmi.te3
-rwxr-xr-x[-rw-r--r--]common/property.te2
-rwxr-xr-x[-rw-r--r--]common/property_contexts2
-rw-r--r--common/qcomsysd.te2
4 files changed, 9 insertions, 0 deletions
diff --git a/common/mmi.te b/common/mmi.te
index 1a7dc286..4ca0abc6 100755
--- a/common/mmi.te
+++ b/common/mmi.te
@@ -113,3 +113,6 @@ unix_socket_connect(mmi, cnd, cnd);
unix_socket_connect(mmi, dpmwrapper, dpmd);
unix_socket_connect(mmi, netmgrd, netmgrd);
net_domain(mmi);
+
+#allow mmi access boot mode switch
+allow mmi boot_mode_prop:property_service set; \ No newline at end of file
diff --git a/common/property.te b/common/property.te
index 0ccfff9b..144e8a3d 100644..100755
--- a/common/property.te
+++ b/common/property.te
@@ -90,3 +90,5 @@ type alarm_instance_prop, property_type, core_property_type;
type hwui_prop, property_type, core_property_type;
type graphics_vulkan_prop, property_type, core_property_type;
+#boot mode property
+type boot_mode_prop, property_type;
diff --git a/common/property_contexts b/common/property_contexts
index e50507a5..a390f2df 100644..100755
--- a/common/property_contexts
+++ b/common/property_contexts
@@ -81,3 +81,5 @@ ro.alarm_instance u:object_r:alarm_instance_prop:s0
#HWUI Property
ro.hwui.texture_cache_size u:object_r:hwui_prop:s0
persist.graphics.vulkan.disable u:object_r:graphics_vulkan_prop:s0
+#boot mode property
+sys.boot_mode u:object_r:boot_mode_prop:s0
diff --git a/common/qcomsysd.te b/common/qcomsysd.te
index 9215305d..01e224c2 100644
--- a/common/qcomsysd.te
+++ b/common/qcomsysd.te
@@ -21,3 +21,5 @@ allow qcomsysd sysfs_socinfo:file w_file_perms;
allow qcomsysd self:capability { dac_override sys_boot };
use_per_mgr(qcomsysd);
+#allow qcomsysd access boot mode switch
+allow qcomsysd boot_mode_prop:property_service set;