Merge "Add udc sysfs to udc_sysfs fs context" into main

This commit is contained in:
Roy Luo 2025-02-06 10:27:37 -08:00 committed by Android (Google) Code Review
commit bc8263d2ff
2 changed files with 4 additions and 0 deletions

View file

@ -352,3 +352,6 @@ genfscon sysfs /devices/platform/25f40000.etm u:object_r:sysfs_devices_cs_etm
# BootControl
genfscon sysfs /kernel/boot_control/blow_ar u:object_r:sysfs_bootctl:s0
# USB
genfscon sysfs /devices/platform/11110000.usb/11110000.dwc3/udc/11110000.dwc3/state u:object_r:sysfs_udc:s0

View file

@ -30,3 +30,4 @@ get_prop(hal_usb_impl, vendor_usb_config_prop);
# For monitoring usb sysfs attributes
allow hal_usb_impl sysfs_wakeup:dir search;
allow hal_usb_impl sysfs_wakeup:file r_file_perms;
allow hal_usb_impl sysfs_udc:file r_file_perms;