summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTri Vo <trong@google.com>2017-10-06 17:31:26 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-06 17:31:26 +0000
commite0c88010a0f00b0cfe4a93c773c3546fea8219ae (patch)
tree6f0301645e478c94c2a09f93621dd3ac4b7c3f34
parentaebe73aebbb9c119faa45ef2908c3a293c5729c5 (diff)
parentf778044bcafae80645acb73e5b557d62587fca03 (diff)
downloadbullhead-e0c88010a0f00b0cfe4a93c773c3546fea8219ae.tar.gz
surfaceflinger access to sysfs_graphics. am: ad0b6af111 am: 8d206bd91d
am: f778044bca Change-Id: I63a580bf290b2dba852ae81d841a873220d6a987
-rw-r--r--sepolicy/file_contexts7
-rw-r--r--sepolicy/hal_graphics_allocator_default.te1
-rw-r--r--sepolicy/surfaceflinger.te1
3 files changed, 4 insertions, 5 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 314c7cd..ff8cff2 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -140,14 +140,10 @@
/sys/class/thermal(/.*)? u:object_r:sysfs_thermal:s0
/sys/devices/soc.0/qpnp-fg-18/power_supply/bms/battery_type u:object_r:sysfs_batteryinfo:s0
/sys/devices/platform/battery_current_limit u:object_r:sysfs_thermal:s0
-/sys/devices/virtual/graphics/fb([0-2])+/idle_time u:object_r:sysfs_graphics:s0
-/sys/devices/virtual/graphics/fb([0-2])+/dynamic_fps u:object_r:sysfs_graphics:s0
/sys/devices/virtual/thermal(/.*)? u:object_r:sysfs_thermal:s0
/sys/module/msm_thermal(/.*)? u:object_r:sysfs_thermal:s0
/sys/module/msm_performance(/.*)? u:object_r:sysfs_performance:s0
-/sys/devices/virtual/graphics/fb([0-2])+/hpd u:object_r:sysfs_graphics:s0
-/sys/devices/virtual/graphics/fb([0-2])+/res_info u:object_r:sysfs_graphics:s0
-/sys/devices/virtual/graphics/fb([0-2])+/s3d_mode u:object_r:sysfs_graphics:s0
+/sys/devices/virtual/graphics/fb([0-2])+(/.*)? u:object_r:sysfs_graphics:s0
/sys/devices/virtual/graphics/fb0/color_temp u:object_r:sysfs_display:s0
/sys/devices/msm_hsic_host/host_ready u:object_r:sysfs_hsic_host_rdy:s0
/sys/bus/msm_subsys(/.*)? u:object_r:sysfs_ssr:s0
@@ -161,6 +157,7 @@
/sys/devices/soc\.0/qcom,bcl[^/]*(/.*)? u:object_r:sysfs_thermal:s0
/sys/devices/soc\.0/fdb00000\.qcom,kgsl-3d0/kgsl/kgsl-3d0/default_pwrlevel u:object_r:sysfs_thermal:s0
/sys/devices/soc\.0/fdb00000\.qcom,kgsl-3d0/kgsl/kgsl-3d0/max_gpuclk u:object_r:sysfs_thermal:s0
+/sys/devices/soc\.0/fd900000\.qcom,mdss_mdp/caps u:object_r:sysfs_graphics:s0
/sys/devices/soc\.0/qpnp-smbcharger-[0-9a-f]+/power_supply/battery/capacity u:object_r:sysfs_batteryinfo:s0
/sys/module/lpm_levels(/.*)? u:object_r:sysfs_power_management:s0
/sys/module/cpu_boost(/.*)? u:object_r:sysfs_devices_system_cpu:s0
diff --git a/sepolicy/hal_graphics_allocator_default.te b/sepolicy/hal_graphics_allocator_default.te
new file mode 100644
index 0000000..cd49e68
--- /dev/null
+++ b/sepolicy/hal_graphics_allocator_default.te
@@ -0,0 +1 @@
+r_dir_file(hal_graphics_allocator_default, sysfs_graphics)
diff --git a/sepolicy/surfaceflinger.te b/sepolicy/surfaceflinger.te
index 1b13fcb..0bda946 100644
--- a/sepolicy/surfaceflinger.te
+++ b/sepolicy/surfaceflinger.te
@@ -1 +1,2 @@
allow surfaceflinger sysfs_display:file rw_file_perms;
+r_dir_file(surfaceflinger, sysfs_graphics)