diff --git a/generic/vendor/msmsteppe/file.te b/generic/vendor/msmsteppe/file.te index 636396f8..1466a070 100644 --- a/generic/vendor/msmsteppe/file.te +++ b/generic/vendor/msmsteppe/file.te @@ -62,3 +62,4 @@ type vendor_sysfs_fps_attr, fs_type, sysfs_type; type vendor_subsys_hvdcp, fs_type, sysfs_type; type sysfs_hvdcp, fs_type, sysfs_type; +type vendor_ims_socket, file_type; diff --git a/generic/vendor/msmsteppe/file_contexts b/generic/vendor/msmsteppe/file_contexts index edef0486..492796b7 100644 --- a/generic/vendor/msmsteppe/file_contexts +++ b/generic/vendor/msmsteppe/file_contexts @@ -246,3 +246,8 @@ /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm6150@0:qpnp,qg/iio:device3/.* u:object_r:sysfs_hvdcp:s0 /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-04/c440000.qcom,spmi:qcom,pm6150l@4:vadc@3100/iio:device1/name u:object_r:sysfs_hvdcp:s0 /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm6150@0:vadc@3100/iio:device0/name u:object_r:sysfs_hvdcp:s0 + +/vendor/bin/imsqmidaemon u:object_r:vendor_ims_exec:s0 +/vendor/bin/imsdatadaemon u:object_r:vendor_ims_exec:s0 +/dev/socket/ims_qmid u:object_r:vendor_ims_service_socket:s0 +/vendor/bin/imsrcsd u:object_r:vendor_ims_service_exec:s0 diff --git a/generic/vendor/msmsteppe/ims.te b/generic/vendor/msmsteppe/ims.te new file mode 100644 index 00000000..3f679136 --- /dev/null +++ b/generic/vendor/msmsteppe/ims.te @@ -0,0 +1,39 @@ +#Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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_ims, domain; +type vendor_ims_exec, exec_type, vendor_file_type, file_type; + +init_daemon_domain(vendor_ims) +net_domain(vendor_ims) + + +get_prop(vendor_ims, hwservicemanager_prop) +set_prop(vendor_ims, vendor_ims_prop) +get_prop(vendor_ims, vendor_cnd_prop) + +binder_call(vendor_ims_service, vendor_dataservice_app) +