From a939c4324cbe408d99eee61ecd375c3dc599f177 Mon Sep 17 00:00:00 2001 From: Andrew Scull <ascull@google.com> Date: Wed, 31 May 2017 14:36:29 +0100 Subject: [PATCH] Add missing sepolicies for the Weaver HAL. Bug: 38233550 Test: Build Change-Id: I7c2105d5f215a60a611110640afff25fc3403559 --- private/hwservice_contexts | 1 + public/hal_weaver.te | 5 ++++- public/hwservice.te | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/private/hwservice_contexts b/private/hwservice_contexts index 35c95ce4c..6d696fabd 100644 --- a/private/hwservice_contexts +++ b/private/hwservice_contexts @@ -39,6 +39,7 @@ android.hardware.tv.input::ITvInput u:object_r:hal_t android.hardware.usb::IUsb u:object_r:hal_usb_hwservice:s0 android.hardware.vibrator::IVibrator u:object_r:hal_vibrator_hwservice:s0 android.hardware.vr::IVr u:object_r:hal_vr_hwservice:s0 +android.hardware.weaver::IWeaver u:object_r:hal_weaver_hwservice:s0 android.hardware.wifi::IWifi u:object_r:hal_wifi_hwservice:s0 android.hardware.wifi.supplicant::ISupplicant u:object_r:hal_wifi_supplicant_hwservice:s0 android.hidl.allocator::IAllocator u:object_r:hidl_allocator_hwservice:s0 diff --git a/public/hal_weaver.te b/public/hal_weaver.te index 1910cf12b..b80ba292c 100644 --- a/public/hal_weaver.te +++ b/public/hal_weaver.te @@ -1,2 +1,5 @@ # HwBinder IPC from client to server -# binder_call(hal_weaver_client, hal_weaver_server) +binder_call(hal_weaver_client, hal_weaver_server) + +add_hwservice(hal_weaver_server, hal_weaver_hwservice) +allow hal_weaver_client hal_weaver_hwservice:hwservice_manager find; diff --git a/public/hwservice.te b/public/hwservice.te index ca9910547..50ce57b2e 100644 --- a/public/hwservice.te +++ b/public/hwservice.te @@ -33,6 +33,7 @@ type hal_tv_input_hwservice, hwservice_manager_type; type hal_usb_hwservice, hwservice_manager_type; type hal_vibrator_hwservice, hwservice_manager_type; type hal_vr_hwservice, hwservice_manager_type; +type hal_weaver_hwservice, hwservice_manager_type; type hal_wifi_hwservice, hwservice_manager_type; type hal_wifi_supplicant_hwservice, hwservice_manager_type; type hidl_allocator_hwservice, hwservice_manager_type, coredomain_hwservice; -- GitLab