From 7a7516e5103b0c262481546de5c1a2fe08e50eab Mon Sep 17 00:00:00 2001 From: Ray Chi Date: Fri, 23 Apr 2021 15:06:23 +0800 Subject: 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: 185302867 Test: apply the rule and verify it Merged-In: I479a0ebdbd4993b0c6e05aebee5fc9dfda13bfb5 Change-Id: I0c8c49e40673b5d81cfaa9ee14a972ea048f7dc9 --- vendor/google/hal_usb_impl.te | 1 + 1 file changed, 1 insertion(+) (limited to 'vendor') diff --git a/vendor/google/hal_usb_impl.te b/vendor/google/hal_usb_impl.te index cd782c5..269d7da 100644 --- a/vendor/google/hal_usb_impl.te +++ b/vendor/google/hal_usb_impl.te @@ -10,3 +10,4 @@ allow hal_usb_impl sysfs_batteryinfo:dir search; allow hal_usb_impl sysfs_batteryinfo:file r_file_perms; allow hal_usb_impl sysfs_contaminant:file rw_file_perms; set_prop(hal_usb_impl, vendor_usb_prop) +allow hal_usb_impl sysfs_extcon:dir search; -- cgit v1.2.3