Skip to content

Commit

Permalink
sepolicy: legacy: perf_hal: allow PerfHal to read SF, hwc thread cgroup
Browse files Browse the repository at this point in the history
Add rule to allow perf hal to read SurfaceFlinger, hardwarecomposer task's cgroups.

Change-Id: I422c991f08011fa15b4617f1146087a5757d5f04
Signed-off-by: chrisl7 <[email protected]>
Signed-off-by: Jprimero15 <[email protected]>
  • Loading branch information
Jagadeesh Pagadala authored and Jprimero15 committed Jan 14, 2025
1 parent c6d4231 commit cbf6f7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sepolicy/legacy/vendor/common/hal_perf_default.te
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ vndbinder_use(vendor_hal_perf);

hal_client_domain(vendor_hal_perf_default, hal_thermal);

allow vendor_hal_perf_default hal_graphics_composer_default:dir search;
allow vendor_hal_perf_default hal_graphics_composer_default:file { open read };
allow vendor_hal_perf_default surfaceflinger:dir search;
allow vendor_hal_perf_default surfaceflinger:file { open read };
allow vendor_hal_perf_default surfaceflinger:process setsched;
allow vendor_hal_perf_default hal_graphics_composer_default:process setsched;
allow vendor_hal_perf_default appdomain:process setsched;
Expand Down

0 comments on commit cbf6f7b

Please sign in to comment.