From 905a029f49d7d3c2552a99ba0f7461ef67fd7ab2 Mon Sep 17 00:00:00 2001 From: Jayachandran C Date: Mon, 23 Oct 2017 11:17:48 -0700 Subject: [PATCH] Make qchook service accessible via service manager for carrier apps Test: Verified Verizon WFC activation and OMADM Bug: 63750053 Change-Id: I212c2ec9ccbebe2297a4aeb84260588a0c32a778 --- sepolicy/private/platform_app.te | 1 + sepolicy/private/radio.te | 1 + sepolicy/private/service.te | 1 + sepolicy/private/service_contexts | 1 + 4 files changed, 4 insertions(+) create mode 100644 sepolicy/private/platform_app.te diff --git a/sepolicy/private/platform_app.te b/sepolicy/private/platform_app.te new file mode 100644 index 00000000..f8133eee --- /dev/null +++ b/sepolicy/private/platform_app.te @@ -0,0 +1 @@ +allow platform_app qchook_service:service_manager find; diff --git a/sepolicy/private/radio.te b/sepolicy/private/radio.te index 9e505223..d187ca8e 100644 --- a/sepolicy/private/radio.te +++ b/sepolicy/private/radio.te @@ -1 +1,2 @@ allow radio uce_service:service_manager find; +add_service(radio, qchook_service) diff --git a/sepolicy/private/service.te b/sepolicy/private/service.te index d6581237..e5abcaab 100644 --- a/sepolicy/private/service.te +++ b/sepolicy/private/service.te @@ -1,2 +1,3 @@ type cne_service, service_manager_type; type uce_service, service_manager_type; +type qchook_service, service_manager_type; diff --git a/sepolicy/private/service_contexts b/sepolicy/private/service_contexts index 20fa4e6e..bf26183b 100644 --- a/sepolicy/private/service_contexts +++ b/sepolicy/private/service_contexts @@ -2,3 +2,4 @@ qti.ims.ext u:object_r:radio_service:s0 cneservice u:object_r:cne_service:s0 uce u:object_r:uce_service:s0 rcs u:object_r:radio_service:s0 +qchook u:object_r:qchook_service:s0