From f4589fecba2e56f37adbcef67dbc459f601496db Mon Sep 17 00:00:00 2001 From: Ray Chi Date: Wed, 14 Apr 2021 14:36:44 +0800 Subject: [PATCH] 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 Change-Id: I0bc44dbf89a02c4fa5b561baf1c0c1c43d5183e9 --- whitechapel/vendor/google/hal_usb_impl.te | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel/vendor/google/hal_usb_impl.te b/whitechapel/vendor/google/hal_usb_impl.te index 6c48682a..14abf59c 100644 --- a/whitechapel/vendor/google/hal_usb_impl.te +++ b/whitechapel/vendor/google/hal_usb_impl.te @@ -10,3 +10,4 @@ set_prop(hal_usb_impl, vendor_usb_config_prop) allow hal_usb_impl sysfs_batteryinfo:dir r_dir_perms; allow hal_usb_impl sysfs_batteryinfo:file rw_file_perms; +allow hal_usb_impl sysfs_extcon:dir search;