S666LN: sepolicy: add primary_dvchg to file_contexts
12-21 04:34:44.772 889 889 W android.hardwar: type=1400 audit(0.0:374): avc: denied { open } for path="/sys/devices/platform/soc/11eb3000.i2c/i2c-9/9-006a/power_supply/primary_dvchg/type" dev="sysfs" ino=50321 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
also reduce spams in log
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
This commit is contained in:
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -5,6 +5,7 @@
|
||||
|
||||
# BatteryInfo
|
||||
/sys/devices/platform/soc/1101a000.i2c/i2c-6/6-006b/power_supply/charger(/.*)? u:object_r:sysfs_batteryinfo:s0
|
||||
/sys/devices/platform/soc/11eb3000.i2c/i2c-9/9-006a/power_supply/primary_dvchg(/.*)? u:object_r:sysfs_batteryinfo:s0
|
||||
/sys/devices/platform/odm/odm:tran_auto_test/power_supply/tran-auto-test(/.*)? u:object_r:sysfs_batteryinfo:s0
|
||||
|
||||
# Camera
|
||||
|
||||
Reference in New Issue
Block a user