From d5af7b7cead439e9d96034603658dcb9219a0ca2 Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Fri, 29 Apr 2022 16:12:14 -0700 Subject: [PATCH] Allow vehicle_binding_util to access AIDL VHAL. AIDL service requires binder_use not hwbinder_use. Test: None Bug: None Change-Id: Ic2245c4b1961cc3a5bbd61a1cb6134d92b8752c1 --- private/vehicle_binding_util.te | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/private/vehicle_binding_util.te b/private/vehicle_binding_util.te index 76d075600..f52794496 100644 --- a/private/vehicle_binding_util.te +++ b/private/vehicle_binding_util.te @@ -8,8 +8,10 @@ init_daemon_domain(vehicle_binding_util) # allow writing to kmsg during boot allow vehicle_binding_util kmsg_device:chr_file { getattr w_file_perms }; -# allow reading the binding property from vhal +# allow reading the binding property from HIDL VHAL. hwbinder_use(vehicle_binding_util) +# allow reading the binding property from AIDL VHAL. +binder_use(vehicle_binding_util) hal_client_domain(vehicle_binding_util, hal_vehicle) # allow executing vdc