From 79210088c5457ceb0bf0c2122720df552004ff5e Mon Sep 17 00:00:00 2001 From: Dennycy Date: Thu, 22 Dec 2022 08:58:35 +0000 Subject: [PATCH] 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 --- tracking_denials/pixelstats_vendor.te | 2 -- vendor/pixelstats_vendor.te | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 tracking_denials/pixelstats_vendor.te diff --git a/tracking_denials/pixelstats_vendor.te b/tracking_denials/pixelstats_vendor.te deleted file mode 100644 index 19ef1f6d..00000000 --- a/tracking_denials/pixelstats_vendor.te +++ /dev/null @@ -1,2 +0,0 @@ -# b/260366322 -dontaudit pixelstats_vendor servicemanager:binder { call }; diff --git a/vendor/pixelstats_vendor.te b/vendor/pixelstats_vendor.te index ec6a67b0..49c2b410 100644 --- a/vendor/pixelstats_vendor.te +++ b/vendor/pixelstats_vendor.te @@ -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;