summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-09 00:14:22 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-09 00:14:22 -0700
commit17cde0630b9bbb849080895fe86fecac99b063ba (patch)
tree3f4da8c1e9c41a515ae5a370a68a72b77044bbb2
parent9994162dc32dde49c97c8d3ace10844a4a9886d3 (diff)
parent11f908451c1001dabc35c9ea9813e7272e7bce63 (diff)
downloadandroid_device_qcom_sepolicy-17cde0630b9bbb849080895fe86fecac99b063ba.tar.gz
android_device_qcom_sepolicy-17cde0630b9bbb849080895fe86fecac99b063ba.tar.bz2
android_device_qcom_sepolicy-17cde0630b9bbb849080895fe86fecac99b063ba.zip
Merge "sepolicy: Allow mmi access boot mode prop"
-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 09517786..90a55cfd 100644..100755
--- a/common/property.te
+++ b/common/property.te
@@ -91,3 +91,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 2c0e1bf1..ea5bbda5 100644..100755
--- a/common/property_contexts
+++ b/common/property_contexts
@@ -82,3 +82,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;