Add sepolicy for Health Connect system service.
Add selinux policy so the healthconnect system service
can be accessed by other processes.
Bug: 246961138
Test: build
Change-Id: I37e0e7f1a2b4696b18f8876a107c509d2906e850
diff --git a/build/soong/service_fuzzer_bindings.go b/build/soong/service_fuzzer_bindings.go
index 7a7f61f..37b92df 100644
--- a/build/soong/service_fuzzer_bindings.go
+++ b/build/soong/service_fuzzer_bindings.go
@@ -208,6 +208,7 @@
"hardware": []string{},
"hardware_properties": []string{},
"hdmi_control": []string{},
+ "healthconnect": []string{},
"ions": []string{},
"idmap": []string{},
"incident": []string{},
diff --git a/private/compat/33.0/33.0.ignore.cil b/private/compat/33.0/33.0.ignore.cil
index 90e2eaf..9cb21e2 100644
--- a/private/compat/33.0/33.0.ignore.cil
+++ b/private/compat/33.0/33.0.ignore.cil
@@ -11,6 +11,7 @@
device_config_vendor_system_native_prop
hal_bootctl_service
hal_tv_input_service
+ healthconnect_service
keystore_config_prop
permissive_mte_prop
servicemanager_prop
diff --git a/private/service_contexts b/private/service_contexts
index 1504bac..19c7c45 100644
--- a/private/service_contexts
+++ b/private/service_contexts
@@ -193,6 +193,7 @@
hardware u:object_r:hardware_service:s0
hardware_properties u:object_r:hardware_properties_service:s0
hdmi_control u:object_r:hdmi_control_service:s0
+healthconnect u:object_r:healthconnect_service:s0
ions u:object_r:radio_service:s0
idmap u:object_r:idmap_service:s0
incident u:object_r:incident_service:s0
diff --git a/public/service.te b/public/service.te
index 4bd5e65..7dbfee8 100644
--- a/public/service.te
+++ b/public/service.te
@@ -136,6 +136,7 @@
type hardware_service, system_server_service, service_manager_type;
type hardware_properties_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
type hdmi_control_service, app_api_service, system_server_service, service_manager_type;
+type healthconnect_service, app_api_service, system_server_service, service_manager_type;
type hint_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
type imms_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
type incremental_service, system_server_service, service_manager_type;