From beacc5b05fc339ff79b1dc5e57dea35baf22447b Mon Sep 17 00:00:00 2001 From: Ray Chi Date: Thu, 2 Feb 2023 15:21:35 +0800 Subject: [PATCH] [ 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 (cherry picked from commit 9828cc747a31ce31f5c6c687356dc1a302a8f90a) Merged-In: I8c265919f7ae4b18aa304b0a584536d2a0f4b27a --- whitechapel/vendor/google/hal_usb_gadget_impl.te | 3 +++ 1 file changed, 3 insertions(+) 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;