Howard Ho a9ae2a2671 [ALPS04079180] mdp-hidl for vt
add sepolicy for mms while using ion and cmdq

MTK-Commit-Id: 1b209f91a99b653ea798077b05ffd7b4c486a83a

Change-Id: I14036617381fb5959c210a68beddbd5084a69abe
CR-Id: ALPS04079180
Feature: [Module]MDP Driver
2020-01-18 10:07:10 +08:00

32 lines
1.1 KiB
Plaintext
Executable File

# ==============================================
# Policy File of /vendor/bin/hw/vendor.mediatek.hardware.mms@1.0-service Executable File
# ==============================================
# Type Declaration
# ==============================================
type mtk_hal_mms, domain;
type mtk_hal_mms_exec, exec_type, file_type, vendor_file_type;
# ==============================================
# MTK Policy Rule
# ==============================================
# Setup for domain transition
init_daemon_domain(mtk_hal_mms)
# Allow to use HWBinder IPC
hwbinder_use(mtk_hal_mms);
# Allow a set of permissions required for a domain to be a server which provides a HAL implementation over HWBinder.
hal_server_domain(mtk_hal_mms, hal_mms)
# add/find permission rule to hwservicemanager
add_hwservice(hal_mms_server, mtk_hal_mms_hwservice)
# Purpose : Allow to use kernel driver
allow mtk_hal_mms graphics_device:chr_file { read write open ioctl };
allow mtk_hal_mms ion_device:chr_file { read open ioctl };
allow mtk_hal_mms mtk_cmdq_device:chr_file { read open ioctl };
allow mtk_hal_mms mtk_hal_pq_hwservice:hwservice_manager find;