sdm710-common: sepolicy: Extend untrusted_app access to battery/power supply sysfs
W/changed_service(7624): type=1400 audit(0.0:2724): avc: denied { search } for name="battery" dev="sysfs" ino=48984 scontext=u:r:untrusted_app:s0:c206,c256,c512,c768 tcontext=u:object_r:sysfs_battery_supply:s0
This commit is contained in:
parent
9c7b234791
commit
4d875c79a2
1 changed files with 3 additions and 0 deletions
3
sepolicy/vendor/untrusted_app.te
vendored
Normal file
3
sepolicy/vendor/untrusted_app.te
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
# allow apps to read battery status
|
||||
r_dir_file(untrusted_app, sysfs_battery_supply)
|
||||
r_dir_file(untrusted_app, sysfs_usb_supply)
|
Loading…
Reference in a new issue