Support monitoring USB sysfs attributes in USB HAL

Grant access to USB sysfs attributes.

Bug: 285199434
Test: no audit log in logcat after command execution
Change-Id: Ia5f3333318b47f4e0a05140bd6b95e939197fde5
This commit is contained in:
Roy Luo 2023-08-07 19:49:09 +00:00
parent 04e1c629f9
commit 8849e1a49a

View file

@ -15,3 +15,7 @@ wakelock_use(hal_usb_impl);
# For interfacing with ThermalHAL
hal_client_domain(hal_usb_impl, hal_thermal);
# For monitoring usb sysfs attributes
allow hal_usb_impl sysfs_wakeup:dir search;
allow hal_usb_impl sysfs_wakeup:file r_file_perms;