From e1dd6d07b53f619f9b0536b88bdacacf8536e9a4 Mon Sep 17 00:00:00 2001 From: Neil Fuller <nfuller@google.com> Date: Wed, 30 May 2018 14:44:47 +0100 Subject: [PATCH] selinux changes to add time detector service This commit contains the changes needed to add the new time detector system server service. Bug: 78217059 Test: make / booted device Change-Id: I7cfaac6cac876e4aa73e8af1aa5f837117bb9ad7 --- private/compat/26.0/26.0.ignore.cil | 1 + private/compat/27.0/27.0.ignore.cil | 1 + private/platform_app.te | 1 + private/service_contexts | 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 b6782217e..0e23d27a3 100644 --- a/private/compat/26.0/26.0.ignore.cil +++ b/private/compat/26.0/26.0.ignore.cil @@ -117,6 +117,7 @@ thermalserviced thermalserviced_exec thermalserviced_tmpfs + timedetector_service timezone_service tombstoned_java_trace_socket tombstone_wifi_data_file diff --git a/private/compat/27.0/27.0.ignore.cil b/private/compat/27.0/27.0.ignore.cil index 06f85fc05..ee5590133 100644 --- a/private/compat/27.0/27.0.ignore.cil +++ b/private/compat/27.0/27.0.ignore.cil @@ -94,6 +94,7 @@ system_boot_reason_prop system_update_service test_boot_reason_prop + timedetector_service tombstone_wifi_data_file trace_data_file traced diff --git a/private/platform_app.te b/private/platform_app.te index eec503a74..41dc91538 100644 --- a/private/platform_app.te +++ b/private/platform_app.te @@ -66,6 +66,7 @@ allow platform_app mediadrmserver_service:service_manager find; allow platform_app persistent_data_block_service:service_manager find; allow platform_app radio_service:service_manager find; allow platform_app thermal_service:service_manager find; +allow platform_app timedetector_service:service_manager find; allow platform_app timezone_service:service_manager find; allow platform_app app_api_service:service_manager find; allow platform_app system_api_service:service_manager find; diff --git a/private/service_contexts b/private/service_contexts index 8b9b862c9..efd9739ae 100644 --- a/private/service_contexts +++ b/private/service_contexts @@ -162,6 +162,7 @@ telecom u:object_r:telecom_service:s0 telephony.registry u:object_r:registry_service:s0 textclassification u:object_r:textclassification_service:s0 textservices u:object_r:textservices_service:s0 +time_detector u:object_r:timedetector_service:s0 timezone u:object_r:timezone_service:s0 thermalservice u:object_r:thermal_service:s0 trust u:object_r:trust_service:s0 diff --git a/public/service.te b/public/service.te index 394e33478..558a77da8 100644 --- a/public/service.te +++ b/public/service.te @@ -140,6 +140,7 @@ type task_service, system_server_service, service_manager_type; type textclassification_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type; type textservices_service, app_api_service, ephemeral_app_api_service, system_server_service, service_manager_type; 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 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; -- GitLab