From 1662495aece4488b5ada8b44a89f9028077ef443 Mon Sep 17 00:00:00 2001
From: Neil Fuller <nfuller@google.com>
Date: Tue, 19 Jun 2018 11:36:23 +0100
Subject: [PATCH] sepolicy entries for time zone detector service

Add sepolicy entries for the new time zone detector service.

The timezonedetector_service will be called from the
telephony process.

Bug: 78217059
Test: make / booted device
Change-Id: Ib719a4bb444b2af7dd71910fb0bd12992df9d88c
---
 private/compat/26.0/26.0.ignore.cil | 1 +
 private/compat/27.0/27.0.ignore.cil | 1 +
 private/service_contexts            | 1 +
 public/radio.te                     | 1 +
 public/service.te                   | 1 +
 5 files changed, 5 insertions(+)

diff --git a/private/compat/26.0/26.0.ignore.cil b/private/compat/26.0/26.0.ignore.cil
index f72118d5d..ebd4037dc 100644
--- a/private/compat/26.0/26.0.ignore.cil
+++ b/private/compat/26.0/26.0.ignore.cil
@@ -120,6 +120,7 @@
     thermalserviced_tmpfs
     timedetector_service
     timezone_service
+    timezonedetector_service
     tombstoned_java_trace_socket
     tombstone_wifi_data_file
     trace_data_file
diff --git a/private/compat/27.0/27.0.ignore.cil b/private/compat/27.0/27.0.ignore.cil
index 9b6ce30dc..fe9887e8e 100644
--- a/private/compat/27.0/27.0.ignore.cil
+++ b/private/compat/27.0/27.0.ignore.cil
@@ -96,6 +96,7 @@
     system_update_service
     test_boot_reason_prop
     timedetector_service
+    timezonedetector_service
     tombstone_wifi_data_file
     trace_data_file
     traced
diff --git a/private/service_contexts b/private/service_contexts
index 54c147377..0513073a7 100644
--- a/private/service_contexts
+++ b/private/service_contexts
@@ -162,6 +162,7 @@ textclassification                        u:object_r:textclassification_service:
 textservices                              u:object_r:textservices_service:s0
 time_detector                             u:object_r:timedetector_service:s0
 timezone                                  u:object_r:timezone_service:s0
+time_zone_detector                        u:object_r:timezonedetector_service:s0
 thermalservice                            u:object_r:thermal_service:s0
 trust                                     u:object_r:trust_service:s0
 tv_input                                  u:object_r:tv_input_service:s0
diff --git a/public/radio.te b/public/radio.te
index 4c5f69c77..05bfd8ce9 100644
--- a/public/radio.te
+++ b/public/radio.te
@@ -36,6 +36,7 @@ allow radio nfc_service:service_manager find;
 allow radio app_api_service:service_manager find;
 allow radio system_api_service:service_manager find;
 allow radio timedetector_service:service_manager find;
+allow radio timezonedetector_service:service_manager find;
 
 # Perform HwBinder IPC.
 hwbinder_use(radio)
diff --git a/public/service.te b/public/service.te
index 9180e88df..11fb831dc 100644
--- a/public/service.te
+++ b/public/service.te
@@ -142,6 +142,7 @@ type textservices_service, app_api_service, ephemeral_app_api_service, system_se
 type telecom_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
 type timedetector_service, system_server_service, service_manager_type;
 type timezone_service, system_server_service, service_manager_type;
+type timezonedetector_service, system_server_service, service_manager_type;
 type trust_service, app_api_service, system_server_service, service_manager_type;
 type tv_input_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
 type uimode_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type;
-- 
GitLab