sepolicy: allows pixelstat to access pca file nodes

Bug: 298628728
Test: no Permission denied while accessing the file node
Change-Id: I0a2ffa3eb583775fa8e6dae02367d156152ee386
Signed-off-by: Jack Wu <wjack@google.com>
This commit is contained in:
Wilson Sung 2023-09-04 14:48:58 +08:00
parent 25a9b1808b
commit a202da5e8a
3 changed files with 8 additions and 0 deletions

2
vendor/file.te vendored
View file

@ -1 +1,3 @@
#sysfs
type sysfs_pca, sysfs_type, fs_type;

View file

@ -1 +1,4 @@
# Battery
genfscon sysfs /devices/platform/10c90000.hsi2c/i2c-9/9-006e/chg_stats u:object_r:sysfs_pca:s0
genfscon sysfs /devices/platform/10ca0000.hsi2c/i2c-10/10-006e/chg_stats u:object_r:sysfs_pca:s0

3
vendor/pixelstats_vendor.te vendored Normal file
View file

@ -0,0 +1,3 @@
# Pca charge
allow pixelstats_vendor sysfs_pca:file rw_file_perms;