qcom: Allow power HAL read idle_state node
Change-Id: Ied66082e0a93c957fce7f71c2af8b0f85a4fd7c2
diff --git a/qcom/vendor/file_contexts b/qcom/vendor/file_contexts
index 1db2091..faa5923 100644
--- a/qcom/vendor/file_contexts
+++ b/qcom/vendor/file_contexts
@@ -7,3 +7,5 @@
# Power
/(vendor|system/vendor)/bin/hw/android\.hardware\.power-service-qti u:object_r:hal_power_default_exec:s0
+/sys/devices(/platform)?/soc/[a-f0-9]+.qcom,mdss_mdp/idle_state u:object_r:sysfs_graphics:s0
+/sys/devices/virtual/graphics/fb([0-3])+/idle_state u:object_r:sysfs_graphics:s0
diff --git a/qcom/vendor/hal_power_default.te b/qcom/vendor/hal_power_default.te
new file mode 100644
index 0000000..6fd6b4b
--- /dev/null
+++ b/qcom/vendor/hal_power_default.te
@@ -0,0 +1 @@
+r_dir_file(hal_power_default, sysfs_graphics)