diff options
author | Ray Chi <raychi@google.com> | 2023-02-02 15:21:35 +0800 |
---|---|---|
committer | Ray Chi <raychi@google.com> | 2023-02-02 15:22:33 +0800 |
commit | 9828cc747a31ce31f5c6c687356dc1a302a8f90a (patch) | |
tree | a297b681e02a82bba178f439495b548ca352800a | |
parent | ca047e8607302919ab07d08c5d80fa9b59e225d2 (diff) |
[ 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
-rw-r--r-- | whitechapel/vendor/google/hal_usb_gadget_impl.te | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/whitechapel/vendor/google/hal_usb_gadget_impl.te b/whitechapel/vendor/google/hal_usb_gadget_impl.te index 7eb0f632..31216c98 100644 --- a/whitechapel/vendor/google/hal_usb_gadget_impl.te +++ b/whitechapel/vendor/google/hal_usb_gadget_impl.te @@ -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; |