Add sepolicy rules to run imsdaemon on bengal

Change-Id: I29a810f7daf1aa147261b08b4005ee6edb06267a
This commit is contained in:
Pavan Kumar M 2023-01-03 10:25:14 +05:30
parent 3bf264e5b4
commit 42ff8589e6

View file

@ -24,11 +24,18 @@
# 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) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# To register imsrcsd to hwBinder
hwbinder_use(vendor_hal_rcsservice)
# add IUceSerive and IService to Hidl interface
add_hwservice(vendor_hal_rcsservice, vendor_hal_imsrcsd_hwservice)
add_hwservice(vendor_hal_rcsservice, vendor_hal_imscallinfo_hwservice)
#add imsfactory to HIDl interface
add_hwservice(vendor_hal_rcsservice, vendor_hal_imsfactory_hwservice)
#add IUceService, IImsCmServiceService, IService and IImsFactory to HIDL interface
#hal server domain for ims_service
hal_server_domain_bypass(vendor_ims_service, vendor_hal_imsfactory)
binder_call(vendor_hal_imsfactory_client, vendor_hal_imsfactory_server)
binder_call(vendor_hal_imsfactory_server, vendor_hal_imsfactory_client)
hal_attribute_hwservice(vendor_hal_imsfactory, vendor_hal_imsfactory_hwservice)
hal_attribute_hwservice(vendor_hal_imsfactory, vendor_hal_imsrcsd_hwservice)
hal_attribute_hwservice(vendor_hal_imsfactory, vendor_hal_imscallinfo_hwservice)
allow vendor_ims_service self:netlink_generic_socket create_socket_perms_no_ioctl;