platform_system_sepolicy/vendor/hal_vehicle_default.te
Tomasz Wasilczyk 3846fc25f6 Vehicle HAL: allow communication with CAN bus HAL and alternative service naming
Bug: 143779011
Test: implemented a VHAL service prototype that communicates with VHAL
Change-Id: I8f449510fc638e29a5cb23c0e32f3d87386ba9bc
2019-11-01 14:21:03 -07:00

12 lines
489 B
Text

# vehicle subsystem
type hal_vehicle_default, domain;
hal_server_domain(hal_vehicle_default, hal_vehicle)
# may be started by init
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 };