diff options
author | Karthik Gopalan <gkarth@codeaurora.org> | 2016-08-04 18:05:58 +0530 |
---|---|---|
committer | Karthik Gopalan <gkarth@codeaurora.org> | 2016-08-05 10:39:33 +0530 |
commit | d8a0c9aba866e89643715eed0eb5ca085d17d4c4 (patch) | |
tree | c289a5d166f93e1b79bd1a1abcbb8c705f9f55d3 | |
parent | 9402ebe2bcfbc33ea7ac50933ec60e200b43d281 (diff) | |
download | android_device_qcom_sepolicy-d8a0c9aba866e89643715eed0eb5ca085d17d4c4.tar.gz android_device_qcom_sepolicy-d8a0c9aba866e89643715eed0eb5ca085d17d4c4.tar.bz2 android_device_qcom_sepolicy-d8a0c9aba866e89643715eed0eb5ca085d17d4c4.zip |
sepolicy: Allow init.qcom.post_boot.sh to setprop HWUI Property
This change allows init.qcom.post_boot.sh script to set the HWUI property
'ro.hwui.texture_cache_size' from init.qcom.post_boot.sh without selinux
denials.
CRs-Fixed: 1050451
Change-Id: I3929dd8c5777285a1f0dc5467976dd137d032e2c
-rw-r--r-- | common/init_shell.te | 2 | ||||
-rw-r--r-- | common/property.te | 3 | ||||
-rw-r--r-- | common/property_contexts | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/common/init_shell.te b/common/init_shell.te index 17b7ec1e..6af44dc5 100644 --- a/common/init_shell.te +++ b/common/init_shell.te @@ -91,6 +91,8 @@ allow qti_init_shell { vm_bms_prop sys_usb_controller_prop sys_usb_configfs_prop + #Needed for setting hwui properties in post_boot + hwui_prop }:property_service set; allow qti_init_shell efs_boot_dev:blk_file r_file_perms; diff --git a/common/property.te b/common/property.te index afe7b46b..6258e3ee 100644 --- a/common/property.te +++ b/common/property.te @@ -84,3 +84,6 @@ type fst_prop, property_type, core_property_type; type alarm_handled_prop, property_type, core_property_type; type alarm_instance_prop, property_type, core_property_type; + +#HWUI property +type hwui_prop, property_type, core_property_type; diff --git a/common/property_contexts b/common/property_contexts index a85af439..939600d5 100644 --- a/common/property_contexts +++ b/common/property_contexts @@ -77,3 +77,5 @@ ro.bluetooth. u:object_r:bluetooth_prop:s0 persist.fst. u:object_r:fst_prop:s0 ro.alarm_handled u:object_r:alarm_handled_prop:s0 ro.alarm_instance u:object_r:alarm_instance_prop:s0 +#HWUI Property +ro.hwui.texture_cache_size u:object_r:hwui_prop:s0 |