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:
parent
25a9b1808b
commit
a202da5e8a
3 changed files with 8 additions and 0 deletions
2
vendor/file.te
vendored
2
vendor/file.te
vendored
|
@ -1 +1,3 @@
|
|||
#sysfs
|
||||
type sysfs_pca, sysfs_type, fs_type;
|
||||
|
||||
|
|
3
vendor/genfs_contexts
vendored
3
vendor/genfs_contexts
vendored
|
@ -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
3
vendor/pixelstats_vendor.te
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Pca charge
|
||||
allow pixelstats_vendor sysfs_pca:file rw_file_perms;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue