Sepolicy: Pixelstats: Battery history sepolicy

avc: denied { read } for comm="pixelstats-vend" name="battery_history"
dev="tmpfs" ino=845 scontext=u:r:pixelstats_vendor:s0 tcontext=u
:object_r:battery_history_device:s0 tclass=chr_file permissive=1

Bug: 260366322
Test: No more battery_history sepolicy found
Change-Id: Ic5d351ed0e42d08b24b5fd0af2d9ebd155086bc9
Signed-off-by: Dennycy <dennycylee@google.com>
This commit is contained in:
Dennycy 2022-12-22 08:58:35 +00:00 committed by Denny cy Lee
parent 0faf3d2c7b
commit 79210088c5
2 changed files with 3 additions and 2 deletions

View file

@ -1,2 +0,0 @@
# b/260366322
dontaudit pixelstats_vendor servicemanager:binder { call };

View file

@ -1,3 +1,6 @@
# Batery history
allow pixelstats_vendor battery_history_device:chr_file r_file_perms;
# BCL
allow pixelstats_vendor sysfs_bcl:dir search;
allow pixelstats_vendor sysfs_bcl:file r_file_perms;