From 301828eb766d078c3a35daafdaca53025c1de738 Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Tue, 23 Aug 2016 18:07:26 -0700 Subject: sepolicy: Set correct policy for display in qti_init_shell - Allow qti_init_shell to access gpu device, which is needed for detect presence of gpu in handling targets w/o gpu - Define property rules for sdm property in qti_init_shell Change-Id: I4a2dc759fbdee5fb8cde2079bc368e9126343407 Crs-fixed: 1057262 --- common/init_shell.te | 3 +++ common/property.te | 1 + common/property_contexts | 1 + 3 files changed, 5 insertions(+) diff --git a/common/init_shell.te b/common/init_shell.te index 6af44dc5..f38b7010 100644 --- a/common/init_shell.te +++ b/common/init_shell.te @@ -31,6 +31,8 @@ allow qti_init_shell vm_bms_device:chr_file getattr; # create/open, read/write permission for fm calibration file. allow qti_init_shell fm_data_file: file create_file_perms; +allow qti_init_shell gpu_device:chr_file getattr; + # for insmod of iris ko, this is needed. # dac_read/override is needed for scripts to do chown/mkdir which is # needed by most of the services @@ -74,6 +76,7 @@ allow qti_init_shell { ctl_qmuxd_prop ctl_netmgrd_prop ctl_port-bridge_prop + sdm_idle_time_prop sf_lcd_density_prop opengles_prop mdm_helper_prop diff --git a/common/property.te b/common/property.te index 6258e3ee..950f2007 100644 --- a/common/property.te +++ b/common/property.te @@ -41,6 +41,7 @@ type ipacm-diag_prop, property_type; type sensors_prop, property_type; type msm_irqbalance_prop, property_type; type camera_prop, property_type, core_property_type; +type sdm_idle_time_prop, property_type, core_property_type; type sf_lcd_density_prop, property_type, core_property_type; type opengles_prop, property_type, core_property_type; type mdm_helper_prop, property_type; diff --git a/common/property_contexts b/common/property_contexts index 939600d5..2468d8d8 100644 --- a/common/property_contexts +++ b/common/property_contexts @@ -48,6 +48,7 @@ ctl.sensors u:object_r:sensors_prop:s0 ctl.msm_irqbalance u:object_r:msm_irqbalance_prop:s0 camera. u:object_r:camera_prop:s0 persist.camera. u:object_r:camera_prop:s0 +sdm.idle_time u:object_r:sdm_idle_time_prop:s0 ro.sf.lcd_density u:object_r:sf_lcd_density_prop:s0 ro.opengles.version u:object_r:opengles_prop:s0 ro.qualcomm.bt.hci_transport u:object_r:bluetooth_prop:s0 -- cgit v1.2.3