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
This commit is contained in:
Badhri Jagan Sridharan 2022-04-07 17:21:15 -07:00
parent 282c77a88f
commit 8606aa8a51

View file

@ -23,3 +23,6 @@ hal_client_domain(hal_usb_impl, hal_thermal);
# For reading the usb-c throttling stats # For reading the usb-c throttling stats
allow hal_usb_impl sysfs_usbc_throttling_stats:file r_file_perms; 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);