From 8606aa8a51d8d777289480de4a9be076817b6bc5 Mon Sep 17 00:00:00 2001 From: Badhri Jagan Sridharan Date: Thu, 7 Apr 2022 17:21:15 -0700 Subject: [PATCH] Allow usb hal to read contaminantdisable property avc: denied { read } for comm="android.hardwar" name="u:object_r:vendor_usb_config_prop:s0" dev="tmpfs" ino=367 scontext=u:r:hal_usb_impl:s0 tcontext=u:object_r:vendor_usb_config_prop:s0 tclass=file permissive=0 Bug: 227792357 Change-Id: Id4d5ef7c214f0c0f672db28991b9fbe0152530b7 --- whitechapel/vendor/google/hal_usb_impl.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whitechapel/vendor/google/hal_usb_impl.te b/whitechapel/vendor/google/hal_usb_impl.te index 6b6d19f6..97ec1c7c 100644 --- a/whitechapel/vendor/google/hal_usb_impl.te +++ b/whitechapel/vendor/google/hal_usb_impl.te @@ -23,3 +23,6 @@ hal_client_domain(hal_usb_impl, hal_thermal); # For reading the usb-c throttling stats allow hal_usb_impl sysfs_usbc_throttling_stats:file r_file_perms; + +# For checking contaminant detection status +get_prop(hal_usb_impl, vendor_usb_config_prop);