From 1c50994e1b9e10754134c195e741628932ee2d72 Mon Sep 17 00:00:00 2001 From: Peng Xu <pengxu@google.com> Date: Sun, 14 Feb 2016 00:14:21 -0800 Subject: [PATCH] Create SELinux label for contexhub_service SELinux label is created for contexthub_service system service. ContextHub service manages all available context hubs and serves fulfil communication between apps and underlying context hub hardware. Change-Id: I8470fedd9c79a00012e1cdb9b548a1b632ba7de6 --- priv_app.te | 1 + service.te | 1 + service_contexts | 1 + 3 files changed, 3 insertions(+) diff --git a/priv_app.te b/priv_app.te index 8d744f19e..e2645c798 100644 --- a/priv_app.te +++ b/priv_app.te @@ -33,6 +33,7 @@ allow priv_app app_api_service:service_manager find; allow priv_app system_api_service:service_manager find; allow priv_app persistent_data_block_service:service_manager find; allow priv_app recovery_service:service_manager find; +allow priv_app contexthub_service:service_manager find; # Traverse into /mnt/media_rw for bypassing FUSE daemon # TODO: narrow this to just MediaProvider diff --git a/service.te b/service.te index 3c3d82526..2b7e4442f 100644 --- a/service.te +++ b/service.te @@ -34,6 +34,7 @@ type battery_service, system_server_service, service_manager_type; type bluetooth_manager_service, app_api_service, system_server_service, service_manager_type; type cameraproxy_service, system_server_service, service_manager_type; type clipboard_service, app_api_service, system_server_service, service_manager_type; +type contexthub_service, system_server_service, service_manager_type; type IProxyService_service, system_api_service, system_server_service, service_manager_type; type commontime_management_service, system_server_service, service_manager_type; type connectivity_service, app_api_service, system_server_service, service_manager_type; diff --git a/service_contexts b/service_contexts index 8bd4e0cc2..9b049e37d 100644 --- a/service_contexts +++ b/service_contexts @@ -24,6 +24,7 @@ common_time.config u:object_r:mediaserver_service:s0 connectivity u:object_r:connectivity_service:s0 consumer_ir u:object_r:consumer_ir_service:s0 content u:object_r:content_service:s0 +contexthub_service u:object_r:contexthub_service:s0 country_detector u:object_r:country_detector_service:s0 cpuinfo u:object_r:cpuinfo_service:s0 dbinfo u:object_r:dbinfo_service:s0 -- GitLab