summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorRay Chi <raychi@google.com>2021-04-23 15:06:23 +0800
committerRay Chi <raychi@google.com>2021-04-23 19:40:41 +0800
commit7a7516e5103b0c262481546de5c1a2fe08e50eab (patch)
tree4353c76370d9387da79433c91a36bf5888e55a7a /vendor
parent80766aac1280ebd075ff1b6ba787bf40b2a94f71 (diff)
downloadsunfish-sepolicy-7a7516e5103b0c262481546de5c1a2fe08e50eab.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: I479a0ebdbd4993b0c6e05aebee5fc9dfda13bfb5 Change-Id: I0c8c49e40673b5d81cfaa9ee14a972ea048f7dc9
Diffstat (limited to 'vendor')
-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 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;