From 8849e1a49a76b62c3382627242891915cf79fae5 Mon Sep 17 00:00:00 2001 From: Roy Luo Date: Mon, 7 Aug 2023 19:49:09 +0000 Subject: [PATCH] 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 --- vendor/hal_usb_impl.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/hal_usb_impl.te b/vendor/hal_usb_impl.te index 27d7bdde..e4610507 100644 --- a/vendor/hal_usb_impl.te +++ b/vendor/hal_usb_impl.te @@ -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;