Merge "sepolicy: Adding sepolicy rules for servicetracker HAL"

This commit is contained in:
qctecmdr
2019-06-25 01:02:34 -07:00
committed by Gerrit - the friendly Code Review server
6 changed files with 52 additions and 0 deletions

View File

@@ -100,3 +100,7 @@ attribute hal_btconfigstore_server;
attribute hal_wifilearner;
attribute hal_wifilearner_client;
attribute hal_wifilearner_server;
attribute hal_srvctracker;
attribute hal_srvctracker_client;
attribute hal_srvctracker_server;

View File

@@ -106,6 +106,7 @@
/(vendor|system/vendor)/bin/mmi u:object_r:vendor_mmi_exec:s0
/(vendor|system/vendor)/bin/mmid u:object_r:vendor_mmi_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.qti\.hardware\.factory@1\.0-service u:object_r:vendor_hal_factory_qti_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.qti\.hardware\.servicetracker@1\.0-service u:object_r:hal_srvctracker_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.qti\.hardware\.cvp@1\.0-service u:object_r:vendor_cvp_exec:s0
/(vendor|system/vendor)/bin/fstman u:object_r:fstman_exec:s0
/(vendor|system/vendor)/bin/wigighalsvc u:object_r:wigighalsvc_exec:s0

View File

@@ -0,0 +1,42 @@
# Copyright (c) 2019, 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.
#Define Domain
type hal_srvctracker_default, domain;
type hal_srvctracker_default_exec, exec_type, vendor_file_type, file_type;
hal_server_domain(hal_srvctracker_default, hal_srvctracker)
init_daemon_domain(hal_srvctracker_default)
binder_call(hal_srvctracker_client, hal_srvctracker_server)
binder_call(hal_srvctracker_server, hal_srvctracker_client)
add_hwservice(hal_srvctracker, hal_srvctracker_hwservice)
allow hal_srvctracker_client hal_srvctracker_hwservice:hwservice_manager find;
allow hal_srvctracker hwservicemanager:binder call;
get_prop(hal_srvctracker_default, hwservicemanager_prop)

View File

@@ -47,3 +47,4 @@ type hal_cvp_hwservice, hwservice_manager_type;
type hal_fm_hwservice, hwservice_manager_type;
type hal_btconfigstore_hwservice, hwservice_manager_type;
type hal_wifilearner_hwservice, hwservice_manager_type;
type hal_srvctracker_hwservice, hwservice_manager_type;

View File

@@ -54,6 +54,7 @@ vendor.qti.hardware.scve.objecttracker::IObjectTracker u:object_r:hal_scve
vendor.qti.hardware.scve.panorama::IPanoramaStitching u:object_r:hal_scve_hwservice:s0
vendor.qti.hardware.scve.panorama::IPanoramaTracking u:object_r:hal_scve_hwservice:s0
vendor.qti.hardware.soter::ISoter u:object_r:hal_soter_hwservice:s0
vendor.qti.hardware.servicetracker::IServicetracker u:object_r:hal_srvctracker_hwservice:s0
vendor.qti.hardware.fm::IFmHci u:object_r:hal_fm_hwservice:s0
vendor.qti.esepowermanager::IEsePowerManager u:object_r:hal_esepowermanager_hwservice:s0
vendor.qti.hardware.wifi.supplicant::ISupplicantVendor u:object_r:hal_wifi_supplicant_hwservice:s0

View File

@@ -28,6 +28,9 @@
##for perf-hal/iop-hal call
hal_client_domain(system_server, hal_perf)
hal_client_domain(system_server, hal_iop)
hal_client_domain(system_server, hal_srvctracker)
binder_call(system_server, hal_srvctracker_default)
allow system_server proc_audiod:file r_file_perms;