sepolicy: allow hal_power_stats to read GPS files

avc:  denied  { search } for  name="gps" dev="dm-46" ino=373
scontext=u:r:hal_power_stats_default:s0
tcontext=u:object_r:vendor_gps_file:s0 tclass=dir permissive=0

Bug: 289764363
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ie362e06c51c87c34c11551d3b13278d21c7222fc
Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2023-09-06 17:40:56 +08:00
parent 467d378ae4
commit adb42e4290

1
vendor/hal_power_stats_default.te vendored Normal file
View file

@ -0,0 +1 @@
r_dir_file(hal_power_stats_default, vendor_gps_file)