From 476d3d19251d55b5681666881068d0bd3981546f Mon Sep 17 00:00:00 2001 From: Denny cylee Date: Tue, 20 Dec 2022 04:26:13 +0000 Subject: Sepolicy: Pixelstats: Sepolicy init avc: denied { open } for path="/sys/devices/platform/10c90000.hsi2c/i2c-7/7-003c/charge_stats" dev="sysfs" ino=71508 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:sysfs_wlc:s0 tclass=file permissive=1 Bug: 260366322 Test: No more battery seplocy error found Change-Id: Ia0e2a6ad7d62f7f4895182627b0147db2f60993e Signed-off-by: Denny cylee --- husky/pixelstats_vendor.te | 3 +++ shiba/pixelstats_vendor.te | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 husky/pixelstats_vendor.te create mode 100644 shiba/pixelstats_vendor.te diff --git a/husky/pixelstats_vendor.te b/husky/pixelstats_vendor.te new file mode 100644 index 0000000..cc2bd92 --- /dev/null +++ b/husky/pixelstats_vendor.te @@ -0,0 +1,3 @@ +# Wireless charge +allow pixelstats_vendor sysfs_wlc:dir search; +allow pixelstats_vendor sysfs_wlc:file rw_file_perms; diff --git a/shiba/pixelstats_vendor.te b/shiba/pixelstats_vendor.te new file mode 100644 index 0000000..cc2bd92 --- /dev/null +++ b/shiba/pixelstats_vendor.te @@ -0,0 +1,3 @@ +# Wireless charge +allow pixelstats_vendor sysfs_wlc:dir search; +allow pixelstats_vendor sysfs_wlc:file rw_file_perms; -- cgit v1.2.3