Add sepolicy for P9222 WLC power_supply
avc: denied { getattr } for comm="android.hardwar" path="/sys/devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222/power_supply/wireless/capacity" dev="sysfs" ino=72303 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 Bug: 229820966 Test: build ok, wireless power_supply can be detected by healthd Signed-off-by: Wasb Liu <wasbliu@google.com> Change-Id: I3078a11d6398be626d2c419ebee7d9e33babe441
This commit is contained in:
parent
d4c74fffeb
commit
1b1d98425f
1 changed files with 3 additions and 0 deletions
3
vendor/genfs_contexts
vendored
Normal file
3
vendor/genfs_contexts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# BMS
|
||||||
|
genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222 u:object_r:sysfs_wlc:s0
|
||||||
|
genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222/power_supply u:object_r:sysfs_batteryinfo:s0
|
Loading…
Add table
Add a link
Reference in a new issue