Revert "Revert "hal_can_*: use hal_attribute_service""
This reverts commit 061b56b497
.
Reason for revert: second submission attempt
Change-Id: I632968c7c0c369ecc07ec829f59b629c39fb71e9
This commit is contained in:
parent
061b56b497
commit
d99750d79e
3 changed files with 6 additions and 12 deletions
|
@ -4,8 +4,4 @@ init_daemon_domain(canhalconfigurator)
|
|||
|
||||
# This allows the configurator to look up the CAN HAL controller via
|
||||
# hwservice_manager and communicate with it.
|
||||
allow canhalconfigurator hal_can_controller_hwservice:hwservice_manager find;
|
||||
binder_call(canhalconfigurator, hal_can_controller);
|
||||
allow canhalconfigurator hidl_manager_hwservice:hwservice_manager find;
|
||||
hwbinder_use(canhalconfigurator);
|
||||
get_prop(canhalconfigurator, hwservicemanager_prop);
|
||||
hal_client_domain(canhalconfigurator, hal_can_controller)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# CAN controller
|
||||
binder_call(hal_can_controller_client, hal_can_controller_server)
|
||||
add_hwservice(hal_can_controller_server, hal_can_controller_hwservice)
|
||||
allow hal_can_controller_client hal_can_controller_hwservice:hwservice_manager find;
|
||||
binder_call(hal_can_controller_server, hal_can_controller_client)
|
||||
hal_attribute_hwservice(hal_can_controller, hal_can_controller_hwservice)
|
||||
|
||||
# CAN bus
|
||||
binder_call(hal_can_bus_client, hal_can_bus_server)
|
||||
add_hwservice(hal_can_bus_server, hal_can_bus_hwservice)
|
||||
allow hal_can_bus_client hal_can_bus_hwservice:hwservice_manager find;
|
||||
binder_call(hal_can_bus_server, hal_can_bus_client)
|
||||
hal_attribute_hwservice(hal_can_bus, hal_can_bus_hwservice)
|
||||
|
|
4
vendor/hal_vehicle_default.te
vendored
4
vendor/hal_vehicle_default.te
vendored
|
@ -7,6 +7,4 @@ type hal_vehicle_default_exec, exec_type, vendor_file_type, file_type;
|
|||
init_daemon_domain(hal_vehicle_default)
|
||||
|
||||
# communication with CAN bus HAL
|
||||
allow hal_vehicle_default hal_can_bus_hwservice:hwservice_manager find;
|
||||
allow hal_vehicle_default hal_can_socketcan:binder { call transfer };
|
||||
allow hal_can_socketcan hal_vehicle_default:binder { call transfer };
|
||||
hal_client_domain(hal_vehicle_default, hal_can_bus)
|
||||
|
|
Loading…
Reference in a new issue