diff --git a/private/canhalconfigurator.te b/private/canhalconfigurator.te new file mode 100644 index 000000000..171f68aa0 --- /dev/null +++ b/private/canhalconfigurator.te @@ -0,0 +1,11 @@ +type canhalconfigurator, domain, coredomain; +type canhalconfigurator_exec, exec_type, system_file_type, file_type; +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); diff --git a/private/file_contexts b/private/file_contexts index c76ff3d94..a3c0b6e75 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -202,6 +202,7 @@ /system/bin/blank_screen u:object_r:blank_screen_exec:s0 /system/bin/boringssl_self_test(32|64) u:object_r:boringssl_self_test_exec:s0 /system/bin/charger u:object_r:charger_exec:s0 +/system/bin/canhalconfigurator u:object_r:canhalconfigurator_exec:s0 /system/bin/e2fsdroid u:object_r:e2fs_exec:s0 /system/bin/mke2fs u:object_r:e2fs_exec:s0 /system/bin/e2fsck -- u:object_r:fsck_exec:s0