[DO NOT MERGE] usb: Add sepolicy for extcon access

USB gadget hal will access extcon folder so that this patch
will add new rule to allow USB gadget hal to access extcon.

Bug: 263435622
Test: build pass
Change-Id: I971732c6a40700a85df61170dcf1c3660307b96c
(cherry picked from commit 03fb0f6ceb)
Merged-In: I971732c6a40700a85df61170dcf1c3660307b96c
This commit is contained in:
Ray Chi 2022-12-14 15:38:22 +08:00 committed by Android Build Coastguard Worker
parent bfcae7eb32
commit 3a7647d59c

View file

@ -19,3 +19,7 @@ allow hal_usb_gadget_impl proc_irq:file w_file_perms;
# allow gadget hal to search hsi2c dir and write to usb_limit_accessory_enable/current
allow hal_usb_gadget_impl sysfs_batteryinfo:dir r_dir_perms;
allow hal_usb_gadget_impl sysfs_batteryinfo:file rw_file_perms;
# allow gadget hal to access extcon node
allow hal_usb_gadget_impl sysfs_extcon:dir search;
allow hal_usb_gadget_impl sysfs_extcon:file r_file_perms;