sepolicy: Add UWB HAL interface in AOSP

Adding sepolicy rules for the AOSP HAL interface.

Ignore-AOSP-First: Dependent changes in internal-only projects.

Bug: 195308730
Test: Compiles
Change-Id: I56302b570a749f7d72b6fe8f4f4a8767ea4785c1
Merged-In: I56302b570a749f7d72b6fe8f4f4a8767ea4785c1
This commit is contained in:
Roshan Pius 2021-08-23 09:29:00 -07:00
parent 65e938e539
commit 8a5370c5e4
7 changed files with 16 additions and 0 deletions

View file

@ -12,6 +12,7 @@
hal_contexthub_service hal_contexthub_service
hal_system_suspend_service hal_system_suspend_service
hal_tv_tuner_service hal_tv_tuner_service
hal_uwb_hwservice
hal_uwb_vendor_service hal_uwb_vendor_service
hal_wifi_hostapd_service hal_wifi_hostapd_service
power_stats_service power_stats_service

View file

@ -69,6 +69,7 @@ android.hardware.tv.input::ITvInput u:object_r:hal_t
android.hardware.tv.tuner::ITuner u:object_r:hal_tv_tuner_hwservice:s0 android.hardware.tv.tuner::ITuner u:object_r:hal_tv_tuner_hwservice:s0
android.hardware.usb::IUsb u:object_r:hal_usb_hwservice:s0 android.hardware.usb::IUsb u:object_r:hal_usb_hwservice:s0
android.hardware.usb.gadget::IUsbGadget u:object_r:hal_usb_gadget_hwservice:s0 android.hardware.usb.gadget::IUsbGadget u:object_r:hal_usb_gadget_hwservice:s0
android.hardware.uwb::IUwb u:object_r:hal_uwb_hwservice:s0
android.hardware.vibrator::IVibrator u:object_r:hal_vibrator_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.vr::IVr u:object_r:hal_vr_hwservice:s0
android.hardware.weaver::IWeaver u:object_r:hal_weaver_hwservice:s0 android.hardware.weaver::IWeaver u:object_r:hal_weaver_hwservice:s0

View file

@ -304,6 +304,7 @@ hal_client_domain(system_server, hal_tv_cec)
hal_client_domain(system_server, hal_tv_input) hal_client_domain(system_server, hal_tv_input)
hal_client_domain(system_server, hal_usb) hal_client_domain(system_server, hal_usb)
hal_client_domain(system_server, hal_usb_gadget) hal_client_domain(system_server, hal_usb_gadget)
hal_client_domain(system_server, hal_uwb)
hal_client_domain(system_server, hal_vibrator) hal_client_domain(system_server, hal_vibrator)
hal_client_domain(system_server, hal_vr) hal_client_domain(system_server, hal_vr)
hal_client_domain(system_server, hal_weaver) hal_client_domain(system_server, hal_weaver)

6
public/hal_uwb.te Normal file
View file

@ -0,0 +1,6 @@
# HwBinder IPC from client to server, and callbacks
binder_call(hal_uwb_client, hal_uwb_server)
binder_call(hal_uwb_server, hal_uwb_client)
hal_attribute_hwservice(hal_uwb, hal_uwb_hwservice)

View file

@ -48,6 +48,7 @@ type hal_tv_input_hwservice, hwservice_manager_type, protected_hwservice;
type hal_tv_tuner_hwservice, hwservice_manager_type, protected_hwservice; type hal_tv_tuner_hwservice, hwservice_manager_type, protected_hwservice;
type hal_usb_gadget_hwservice, hwservice_manager_type, protected_hwservice; type hal_usb_gadget_hwservice, hwservice_manager_type, protected_hwservice;
type hal_usb_hwservice, hwservice_manager_type, protected_hwservice; type hal_usb_hwservice, hwservice_manager_type, protected_hwservice;
type hal_uwb_hwservice, hwservice_manager_type, protected_hwservice;
type hal_vehicle_hwservice, hwservice_manager_type, protected_hwservice; type hal_vehicle_hwservice, hwservice_manager_type, protected_hwservice;
type hal_vibrator_hwservice, hwservice_manager_type, protected_hwservice; type hal_vibrator_hwservice, hwservice_manager_type, protected_hwservice;
type hal_vr_hwservice, hwservice_manager_type, protected_hwservice; type hal_vr_hwservice, hwservice_manager_type, protected_hwservice;

View file

@ -80,6 +80,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.tuner-service\.example u:object_r:hal_tv_tuner_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.tuner-service\.example u:object_r:hal_tv_tuner_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb\.gadget@1\.1-service u:object_r:hal_usb_gadget_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.usb\.gadget@1\.1-service u:object_r:hal_usb_gadget_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.uwb-service u:object_r:hal_uwb_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator-service.example u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator-service.example u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0

5
vendor/hal_uwb_default.te vendored Normal file
View file

@ -0,0 +1,5 @@
type hal_uwb_default, domain;
hal_server_domain(hal_uwb_default, hal_uwb)
type hal_uwb_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_uwb_default)