sepolicy_vndr: add qconfig sepolicy
Add sepolicy for qconfigservice. Change-Id: I14858509ac4a8e2ebb14a5b12e26a7a3dc995fe7
This commit is contained in:
parent
b42fbfb13e
commit
36d7be8320
5 changed files with 41 additions and 0 deletions
1
qva/vendor/common/file_contexts
vendored
1
qva/vendor/common/file_contexts
vendored
|
@ -102,6 +102,7 @@
|
|||
/(vendor|system/vendor)/bin/qcom-system-daemon u:object_r:vendor_qcomsysd_exec:s0
|
||||
/(vendor|system/vendor)/bin/init\.qti\.media\.sh u:object_r:vendor_qti_media_exec:s0
|
||||
/(vendor|system/vendor)/bin/vppservice u:object_r:vendor_vppservice_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/qconfigservice u:object_r:vendor_qconfigservice_exec:s0
|
||||
/(vendor|system/vendor)/bin/wifidisplayhalservice u:object_r:vendor_wifidisplayhalservice_qti_exec:s0
|
||||
/(vendor|system/vendor)/bin/wfdhdcphalservice u:object_r:vendor_wfdhdcphalservice_qti_exec:s0
|
||||
/(vendor|system/vendor)/bin/wfdvndservice u:object_r:vendor_wfdvndservice_exec:s0
|
||||
|
|
1
qva/vendor/common/hwservice.te
vendored
1
qva/vendor/common/hwservice.te
vendored
|
@ -31,6 +31,7 @@ type vendor_hal_pasrmanager_hwservice, hwservice_manager_type, protected_hwservi
|
|||
type vendor_wifidisplayhalservice_hwservice , hwservice_manager_type, protected_hwservice;
|
||||
type vendor_hal_alarm_qti_hwservice , hwservice_manager_type, protected_hwservice;
|
||||
type vendor_hal_vpp_hwservice , hwservice_manager_type, protected_hwservice;
|
||||
type vendor_hal_qconfig_hwservice , hwservice_manager_type, protected_hwservice;
|
||||
type vendor_hal_wigig_hwservice , hwservice_manager_type, protected_hwservice;
|
||||
type vendor_hal_seccam_hwservice, hwservice_manager_type, protected_hwservice;
|
||||
type vendor_hal_wigig_npt_hwservice , hwservice_manager_type, protected_hwservice;
|
||||
|
|
1
qva/vendor/common/hwservice_contexts
vendored
Normal file → Executable file
1
qva/vendor/common/hwservice_contexts
vendored
Normal file → Executable file
|
@ -31,6 +31,7 @@ com.qualcomm.qti.wifidisplayhal::IDSManager u:object_r:vendor_w
|
|||
vendor.qti.hardware.alarm::IAlarm u:object_r:vendor_hal_alarm_qti_hwservice:s0
|
||||
vendor.qti.hardware.vpp::IHidlVppService u:object_r:vendor_hal_vpp_hwservice:s0
|
||||
vendor.qti.hardware.vpp::IVppService u:object_r:vendor_hal_vpp_hwservice:s0
|
||||
vendor.qti.hardware.qconfig::IQConfig u:object_r:vendor_hal_qconfig_hwservice:s0
|
||||
vendor.qti.hardware.wigig.supptunnel::ISuppTunnelProvider u:object_r:vendor_hal_wigig_hwservice:s0
|
||||
vendor.qti.hardware.wigig.netperftuner::INetPerfTuner u:object_r:vendor_hal_wigig_npt_hwservice:s0
|
||||
vendor.qti.hardware.fstman::IFstManager u:object_r:vendor_hal_fstman_hwservice:s0
|
||||
|
|
1
qva/vendor/common/mediacodec.te
vendored
1
qva/vendor/common/mediacodec.te
vendored
|
@ -35,5 +35,6 @@ get_prop(mediacodec, vendor_video_prop)
|
|||
|
||||
#Allow mediacodec to access vpp
|
||||
hal_client_domain(mediacodec, vendor_hal_vpp)
|
||||
hal_client_domain(mediacodec, vendor_hal_qconfig)
|
||||
allow mediacodec vendor_xdsp_device:chr_file r_file_perms;
|
||||
allow mediacodec vendor_qdsp_device:chr_file r_file_perms;
|
||||
|
|
37
qva/vendor/common/qconfigservice.te
vendored
Executable file
37
qva/vendor/common/qconfigservice.te
vendored
Executable file
|
@ -0,0 +1,37 @@
|
|||
# Copyright (c) 2020, 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 vendor_qconfigservice, domain;
|
||||
type vendor_qconfigservice_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(vendor_qconfigservice)
|
||||
hal_server_domain(vendor_qconfigservice, vendor_hal_qconfig)
|
||||
|
||||
hal_attribute_hwservice(vendor_hal_qconfig, vendor_hal_qconfig_hwservice)
|
||||
|
||||
binder_call(vendor_hal_qconfig_client, vendor_hal_qconfig_server)
|
||||
binder_call(vendor_hal_qconfig_server, vendor_hal_qconfig_client)
|
Loading…
Reference in a new issue