Allow Power Stats HAL to access EdgeTPU sysfs files.

Should fix intermittent failures of SELinuxUncheckedDenialBootTest.

Bug: 192485697
Test: build, checked for denials in logcat
Change-Id: I3b9cafd99f9ff343e5ab5c67f5f268e5eb4382d6
This commit is contained in:
Krzysztof Kosiński 2021-06-30 13:51:22 -07:00
parent 075ba05575
commit 6d6a7c96ab

View file

@ -10,6 +10,9 @@ allow hal_power_stats_default odpm_config_file:file r_file_perms;
allow hal_power_stats_default sysfs_odpm:dir search;
allow hal_power_stats_default sysfs_odpm:file rw_file_perms;
allow hal_power_stats_default sysfs_edgetpu:dir search;
allow hal_power_stats_default sysfs_edgetpu:file r_file_perms;
binder_call(hal_power_stats_default, citadeld)
r_dir_file(hal_power_stats_default, sysfs_aoc)
r_dir_file(hal_power_stats_default, sysfs_cpu)