summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Qureshi <muhammadq@google.com>2022-02-03 00:29:25 +0000
committerMuhammad Qureshi <muhammadq@google.com>2022-02-03 00:29:25 +0000
commitb99951ceb737e640110324e6899c485d9a3a4401 (patch)
treef59d41586e74055df263694ddd45b246be32d604
parent035d66fb0b4ed5c22d3af719f0d380add7fa567d (diff)
downloadredfin-sepolicy-b99951ceb737e640110324e6899c485d9a3a4401.tar.gz
Revert "android.hardware.usb.IUsb AIDL migration"
Revert "Migrate IUsb implementation to AIDL" Revert submission 16765902-IUSB_redfin Reason for revert: DeviceBootTest failure - b/217606853 Reverted Changes: I681c1ba9c:Migrate IUsb implementation to AIDL Ia8c246102:android.hardware.usb.IUsb AIDL migration Change-Id: I86aeeff51650dbd51d6e167baa20cd705dcd656b
-rw-r--r--vendor/google/file_contexts3
-rw-r--r--vendor/google/hal_usb_gadget_impl.te13
2 files changed, 1 insertions, 15 deletions
diff --git a/vendor/google/file_contexts b/vendor/google/file_contexts
index cd5a515..97263fe 100644
--- a/vendor/google/file_contexts
+++ b/vendor/google/file_contexts
@@ -1,5 +1,4 @@
# vendor binaries
-/vendor/bin/hw/android\.hardware\.usb-service\.redfin u:object_r:hal_usb_impl_exec:s0
-/vendor/bin/hw/android\.hardware\.usb\.gadget-service\.redfin u:object_r:hal_usb_gadget_impl_exec:s0
+/vendor/bin/hw/android\.hardware\.usb@1\.3-service\.redfin u:object_r:hal_usb_impl_exec:s0
/vendor/bin/hw/android\.hardware\.vibrator-service\.redfin u:object_r:hal_vibrator_default_exec:s0
/vendor/bin/hw/android\.hardware\.dumpstate@1\.1-service\.redfin u:object_r:hal_dumpstate_impl_exec:s0
diff --git a/vendor/google/hal_usb_gadget_impl.te b/vendor/google/hal_usb_gadget_impl.te
deleted file mode 100644
index 89ae09f..0000000
--- a/vendor/google/hal_usb_gadget_impl.te
+++ /dev/null
@@ -1,13 +0,0 @@
-type hal_usb_gadget_impl, domain;
-hal_server_domain(hal_usb_gadget_impl, hal_usb)
-hal_server_domain(hal_usb_gadget_impl, hal_usb_gadget)
-
-type hal_usb_gadget_impl_exec, vendor_file_type, exec_type, file_type;
-init_daemon_domain(hal_usb_gadget_impl)
-
-allow hal_usb_gadget_impl configfs:dir { create rmdir };
-allow hal_usb_gadget_impl functionfs:dir { watch watch_reads };
-
-allow hal_usb_gadget_impl sysfs_batteryinfo:dir r_dir_perms;
-allow hal_usb_gadget_impl sysfs_batteryinfo:file rw_file_perms;
-allow hal_usb_gadget_impl sysfs_extcon:dir search;