summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Chi <raychi@google.com>2021-04-19 17:27:16 +0800
committerRay Chi <raychi@google.com>2021-04-23 19:41:16 +0800
commit1e27233b4269a8760ded1e1bafac2e39622f540b (patch)
tree98279ca1f61f115acdb879779387adf3dc6e24eb
parent1b4a899bb0f43dae0273ee4e88ad601ad1922925 (diff)
downloadcoral-sepolicy-1e27233b4269a8760ded1e1bafac2e39622f540b.tar.gz
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: I6ee63dd4308c404b7cde7c521628d2e33207abf0 Change-Id: I31f14fe4f1075351ae6f2c0f02effc34e86cba8c
-rw-r--r--vendor/google/hal_usb_impl.te1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/google/hal_usb_impl.te b/vendor/google/hal_usb_impl.te
index 4886e68..acb596e 100644
--- a/vendor/google/hal_usb_impl.te
+++ b/vendor/google/hal_usb_impl.te
@@ -11,3 +11,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;