[ 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: verified pass
Change-Id: I8c265919f7ae4b18aa304b0a584536d2a0f4b27a
This commit is contained in:
Ray Chi 2023-02-02 15:21:35 +08:00
parent ca047e8607
commit 9828cc747a

View file

@ -19,3 +19,6 @@ allow hal_usb_gadget_impl proc_interrupts:file r_file_perms;
# change irq to other cores
allow hal_usb_gadget_impl proc_irq:dir r_dir_perms;
allow hal_usb_gadget_impl proc_irq:file w_file_perms;
# allow gadget hal to access extcon node
allow hal_usb_gadget_impl sysfs_extcon:file r_file_perms;