Merge "[ALPS03893656] factory: add power_supply and switch permission" into alps-trunk-p0.basic

Change-Id: I45bc05f2a7b30497b8a49e71642ae4492feeae35
MTK-Commit-Id: 59248eee76c2fdd98a725417a881d4af1a27d083
This commit is contained in:
Elvin Lin 2020-01-18 10:03:00 +08:00 committed by Gerrit Code Review
commit ddeb3c3e41

View File

@ -336,3 +336,7 @@ allow factory sysfs_dt_firmware_android:file { read open getattr };
allow factory sysfs_dt_firmware_android:dir { read open search };
# Purpose : Allow factory to communicate with driver thru socket
allow factory factory:capability { sys_module net_admin net_raw };
# For power_supply and switch permission
r_dir_file(factory, sysfs_batteryinfo)
r_dir_file(factory, sysfs_switch)