diff options
author | Denny cylee <dennycylee@google.com> | 2022-12-20 04:26:13 +0000 |
---|---|---|
committer | Denny cylee <dennycylee@google.com> | 2022-12-20 04:27:51 +0000 |
commit | 476d3d19251d55b5681666881068d0bd3981546f (patch) | |
tree | d9bc503f7ff236471fb54e9fb085dc4469c1236c | |
parent | e533e18f617575cbdf8d4612439f69df57a90caf (diff) | |
download | shusky-sepolicy-476d3d19251d55b5681666881068d0bd3981546f.tar.gz |
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 <dennycylee@google.com>
-rw-r--r-- | husky/pixelstats_vendor.te | 3 | ||||
-rw-r--r-- | shiba/pixelstats_vendor.te | 3 |
2 files changed, 6 insertions, 0 deletions
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; |