sepolicy: allow pixelstats to access maxfg_history

to dump secondary battery history for dual battery projects:
avc:  denied  { read } for  name="maxfg_history" dev="tmpfs" ino=1127 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0

Bug: 333952062
Change-Id: I072db3adff63c63ebbb5b1ba4dabfccfe3d6adac
Signed-off-by: Jenny Ho <hsiufangho@google.com>
This commit is contained in:
Jenny Ho 2024-04-12 07:51:56 +08:00
parent bab1ea9e7b
commit b078a0eeca

View file

@ -79,6 +79,7 @@
/dev/sys/block/bootdevice(/.*)? u:object_r:bootdevice_sysdev:s0
/dev/socket/chre u:object_r:chre_socket:s0
/dev/battery_history u:object_r:battery_history_device:s0
/dev/maxfg_history u:object_r:battery_history_device:s0
/dev/bbd_pwrstat u:object_r:power_stats_device:s0
/dev/edgetpu-soc u:object_r:edgetpu_device:s0
/dev/block/sda u:object_r:sda_block_device:s0