diff options
author | Tri Vo <trong@google.com> | 2017-10-06 17:25:22 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-06 17:25:22 +0000 |
commit | 8d206bd91deef8035d57a91fedd1cd567df98ed0 (patch) | |
tree | 3fb63290b56a59258f12a4afbd734efb3b4ee8ae | |
parent | 3fc43e5135e3b36437537b2bc4e9ec574a3cf853 (diff) | |
parent | ad0b6af1114b2603d788d241af5f5636e1c2638f (diff) | |
download | bullhead-8d206bd91deef8035d57a91fedd1cd567df98ed0.tar.gz |
surfaceflinger access to sysfs_graphics.
am: ad0b6af111
Change-Id: I510bc466fcfc49f95aa8f3e7cafe0a9ca72c3ad1
-rw-r--r-- | sepolicy/file_contexts | 7 | ||||
-rw-r--r-- | sepolicy/hal_graphics_allocator_default.te | 1 | ||||
-rw-r--r-- | sepolicy/surfaceflinger.te | 1 |
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) |