From 8741018f2f49504fe0b2aa241610ea1c7b67e466 Mon Sep 17 00:00:00 2001 From: Manu Prasad Date: Fri, 15 Dec 2017 12:52:28 +0530 Subject: SEPOLICY: Move WFD service context definitions to private -- As per treble guidelines, wfd type and service context definitions have to be in private/public folders, as having it in common folder will make it get listed as default labelled service. -- Moving wfd type and service_context definitions to private folder. Change-Id: I803678facae4cbad7d6707ee70914daefcfa3fd2 --- common/service_contexts | 1 - private/service.te | 1 + private/service_contexts | 1 + public/service.te | 28 ---------------------------- 4 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 public/service.te diff --git a/common/service_contexts b/common/service_contexts index 2b445238..6ed80adf 100644 --- a/common/service_contexts +++ b/common/service_contexts @@ -35,7 +35,6 @@ improveTouch.TouchService u:object_r:improve_touch_service: improveTouch.TouchManagerService u:object_r:improve_touch_service:s0 improveTouch.GestureManagerService u:object_r:improve_touch_service:s0 improveTouch.HandBiometricManagerService u:object_r:improve_touch_service:s0 -wfdservice u:object_r:wfdservice_service:s0 DigitalPen u:object_r:usf_service:s0 dts_eagle_service u:object_r:dtseagleservice_service:s0 com.qualcomm.qti.secota.service.SecotaNService u:object_r:secotad_service:s0 diff --git a/private/service.te b/private/service.te index a17fd8b6..3c12dc8a 100644 --- a/private/service.te +++ b/private/service.te @@ -33,3 +33,4 @@ type color_service, service_manager_type; type MinkBinderSvc, app_api_service, service_manager_type; type izat_service, app_api_service, system_api_service, service_manager_type; type regionalization_service, system_api_service, service_manager_type; +type wfdservice_service, service_manager_type; diff --git a/private/service_contexts b/private/service_contexts index b9735e0d..b20f01d1 100644 --- a/private/service_contexts +++ b/private/service_contexts @@ -39,3 +39,4 @@ extphone u:object_r:radio_service:s0 qti.ims.ext u:object_r:radio_service:s0 com.qti.snapdragon.sdk.display.IColorService u:object_r:color_service:s0 regionalization u:object_r:regionalization_service:s0 +wfdservice u:object_r:wfdservice_service:s0 diff --git a/public/service.te b/public/service.te deleted file mode 100644 index 7d929f9f..00000000 --- a/public/service.te +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (c) 2017, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -type wfdservice_service, service_manager_type; -- cgit v1.2.3