blob: 3298198d119dff7bc004c7f982a6773adc0bb9a0 [file] [log] [blame]
# Copyright (c) 2018-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.
#
# Changes from Qualcomm Innovation Center are provided under the following license:
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) 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 Qualcomm Innovation Center, Inc. nor the names of
# its contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER 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.
# Changes from Qualcomm Innovation Center are provided under the following license:
#
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted (subject to the limitations in the
# disclaimer below) 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 Qualcomm Innovation Center, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
# GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER 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.
#QTI file types
type vendor_qti_data_file, file_type, data_file_type;
type vendor_persist_secnvm_file, file_type , vendor_persist_type;
type vendor_persist_iar_db_file, file_type , vendor_persist_type;
type vendor_persist_spudc_file, file_type , vendor_persist_type;
#mink-lowi-interface-daemon (mlid) socket
type vendor_mlid_socket, file_type, mlstrustedobject;
#Wireless Edge Service (QWES) socket and files
type vendor_qwesd_socket, file_type, mlstrustedobject;
type vendor_qwes_data_file, file_type, data_file_type;
#ssg qmi gateway daemon socket
type vendor_ssgqmig_socket, file_type, mlstrustedobject;
#ssg tz daemon socket
type vendor_ssgtzd_socket, file_type, mlstrustedobject;
type vendor_ssgtzd_opener_socket, file_type, mlstrustedobject;
#spunvm file types
type vendor_spunvm_file, file_type, vendor_spunvm_file_type;
allow vendor_spunvm_file self:filesystem associate;
type vendor_qfp-daemon_data_file, file_type, data_file_type;
type vendor_persist_qti_fp_file, file_type, vendor_persist_type;
type vendor_sysfs_touch_aoi, fs_type, sysfs_type;
#sysfs jpeg
type vendor_sysfs_jpeg, fs_type, sysfs_type;
#vendor sysfs ddr
type vendor_sysfs_ddr, fs_type, sysfs_type;
#vendor sysfs sku version
type vendor_sysfs_sku, fs_type, sysfs_type;
# qcc-trd data files
type vendor_qcc_trd_data_file, file_type, data_file_type;
# qcc-vendor data files
type vendor_qccvendor_data_file, file_type, data_file_type;
type vendor_qccvendor_socket, file_type;
type vendor_sysfs_npu, fs_type, sysfs_type;
type vendor_persist_mmi_file, file_type, vendor_persist_type;
type vendor_persist_hvdcp_file, file_type, vendor_persist_type;
type vendor_battery_stats_data_file, file_type, data_file_type;
#File type by mmi
type vendor_mmi_socket, file_type;
#ADPL socket file types
type vendor_dataadpl_socket, file_type;
#perf
type vendor_sysfs_lib, fs_type, sysfs_type;
type vendor_sysfs_memory, fs_type, sysfs_type;
type vendor_sysfs_process_reclaim, fs_type, sysfs_type;
type vendor_sysfs_vmpressure, fs_type, sysfs_type;
# secure element file type for data vendor access
type vendor_secure_element_vendor_data_file, file_type, data_file_type;
#Define the files written during the operation of mpctl
type vendor_sysfs_mpctl, fs_type, sysfs_type;
type vendor_mpctl_socket, file_type, mlstrustedobject;
type vendor_mpctl_data_file, file_type, data_file_type;
#IOP
type vendor_iop_socket, file_type;
type vendor_iop_data_file, file_type, data_file_type;
#Define the files used by lm
type vendor_lm_data_file, file_type, data_file_type;
# Wifi Data file
type vendor_wifi_vendor_data_file, file_type, data_file_type;
type vendor_wifi_vendor_wpa_socket, file_type, data_file_type;
type vendor_hostapd_socket, file_type, data_file_type;
#spss sysfs files
type vendor_sysfs_spss, fs_type, sysfs_type;
#vpp
type vendor_vpp_data_file, file_type, data_file_type;
type vendor_persist_vpp_file, file_type, vendor_persist_type;
# Spdaemon file
type vendor_sysfs_spdaemon, fs_type, sysfs_type;
# wigig, fstman
type vendor_sysfs_wigig, fs_type, sysfs_type;
type vendor_wigignpt_socket, file_type;
type vendor_wigig_vendor_wpa_socket, file_type;
# wigig_hostapd
type vendor_wigig_hostapd_socket, file_type, data_file_type;
type vendor_sensingdaemon_socket, file_type;
type vendor_sensing_vendor_data_file, file_type, data_file_type;
#qvrservice sysfs files
type vendor_sysfs_qvr_external_sensor, sysfs_type, fs_type;
type vendor_qvrd_vndr_data_file, file_type, data_file_type;
type vendor_qvrd_vndr_socket, file_type;
#sxrservice sysfs files
type vendor_sxrd_vndr_data_file, file_type, data_file_type;
type vendor_sxrd_vndr_socket, file_type;
#GuestVM PIL files
type vendor_sysfs_bootguestvm, fs_type, sysfs_type;
#qspm-hal
type vendor_qspmhal_data_file, file_type, data_file_type;
#System memory file types
type vendor_sysfs_system_memory, sysfs_type, fs_type;
type vendor_sysfs_qfprom, fs_type, sysfs_type;
# Memory offlining file types
type vendor_sysfs_mem_offline, sysfs_type, fs_type;
#slub-debug
type vendor_sysfs_slab_zshandle_storeuser, fs_type, sysfs_type;
type vendor_sysfs_slab_zspage_storeuser, fs_type, sysfs_type;
#dpmd_vndr
type vendor_dpm_vndr_data_file, file_type, data_file_type ;
#qesdk
type vendor_qesd_socket, file_type;
type vendor_sysfs_usb_node, fs_type, sysfs_type;
#qms
type vendor_qms_vndr_data_file, file_type, data_file_type;
#/sys/block/dev/sd*
type vendor_sysfs_sd, sysfs_type, fs_type;