sepolicy:qcc: switch to platform app
qcc app domain switch to platform app from system Change-Id: I661fef3af7d0a9518f67e14f2787999f268485e0
This commit is contained in:
@@ -24,12 +24,16 @@
|
||||
# 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.
|
||||
#
|
||||
# Changes from Qualcomm Innovation Center are provided under the following license:
|
||||
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
|
||||
type vendor_seemp_data_file, core_data_file_type, data_file_type, file_type;
|
||||
type vendor_dpmd_socket, file_type, coredomain_socket;
|
||||
type vendor_dpmd_data_file, file_type, data_file_type, core_data_file_type;
|
||||
type vendor_dpmwrapper_socket, file_type, coredomain_socket, mlstrustedobject;
|
||||
type vendor_qcc_data_file, file_type, data_file_type, core_data_file_type;
|
||||
type vendor_qcc_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject;
|
||||
type vendor_qcc_app_socket, file_type, mlstrustedobject, coredomain_socket;
|
||||
type vendor_sys_sxrauxd_data_file, file_type, data_file_type, core_data_file_type;
|
||||
type vendor_sys_sxrauxd_socket, file_type, coredomain_socket;
|
||||
|
||||
@@ -30,11 +30,10 @@
|
||||
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
|
||||
typeattribute vendor_qcc_app mlstrustedsubject;
|
||||
|
||||
app_domain(vendor_qcc_app)
|
||||
net_domain(vendor_qcc_app)
|
||||
binder_use(vendor_qcc_app)
|
||||
hal_client_domain(vendor_qcc_app, vendor_qccsyshal);
|
||||
|
||||
allow vendor_qcc_app radio_service:service_manager find;
|
||||
# for vendor_perf_service
|
||||
@@ -50,13 +49,10 @@ unix_socket_connect(vendor_qcc_app, vendor_dpmtcm, vendor_tcmd)
|
||||
# allow access to mediadrmserver for qdmastats/wvstats
|
||||
allow vendor_qcc_app mediadrmserver_service:service_manager find;
|
||||
|
||||
# allow vendor_qcc_app to access system_app_data_file
|
||||
# necessary for read and write /data/user_de/0/com.---.qti.qdma subdirectory.
|
||||
allow vendor_qcc_app system_data_file:dir search;
|
||||
allow vendor_qcc_app system_app_data_file:dir create_dir_perms;
|
||||
allow vendor_qcc_app system_app_data_file:file create_file_perms;
|
||||
|
||||
allow vendor_qcc_app user_profile_root_file:dir search;
|
||||
# allow vendor_qcc_app to access app_data_file
|
||||
# necessary for read and write /data/user_de/0/data subdirectory.
|
||||
allow vendor_qcc_app app_data_file:dir create_dir_perms;
|
||||
allow vendor_qcc_app app_data_file:file create_file_perms;
|
||||
|
||||
# allow cgroup access
|
||||
allow vendor_qcc_app cgroup:file rw_file_perms;
|
||||
|
||||
@@ -24,6 +24,10 @@
|
||||
# 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.
|
||||
#
|
||||
# Changes from Qualcomm Innovation Center are provided under the following license:
|
||||
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
|
||||
#Add new domain for DataServices
|
||||
# Needed for CNEService , uceShimService and other connectivity services
|
||||
@@ -47,7 +51,7 @@ user=_app seinfo=platform name=com.qualcomm.wfd.service:wfd_service domain=vendo
|
||||
user=_app seinfo=platform name=com.qualcomm.wfd.client domain=vendor_wfd_app type=app_data_file levelfrom=all
|
||||
|
||||
#Add new domain for QCC
|
||||
user=system seinfo=platform name=com.qti.qcc isPrivApp=true domain=vendor_qcc_app type=system_app_data_file
|
||||
user=_app seinfo=platform name=com.qti.qcc domain=vendor_qcc_app type=app_data_file levelFrom=all
|
||||
#Add new domain for QCCLMTP
|
||||
user=system seinfo=platform name=com.qualcomm.qti.qcclmtp isPrivApp=true domain=vendor_qcc_lmtp_app type=system_app_data_file
|
||||
#Add new domain for QCCNetstat
|
||||
|
||||
Reference in New Issue
Block a user