[ALPS03598446] add selinux policy for mdp

[Detail]add a mtk_mdp_device lable and a allow rule for VP

[Solution]add a mtk_mdp_device lable and a allow rule for VP

MTK-Commit-Id: d015c8eba69f036e0f4770e045b1c99bd4d6c8c5

Change-Id: I9b72360ae4a31d849d8e6ada94d4ee8c49f36b1b
CR-Id: ALPS03598446
Feature: [Module]MDP Driver
(cherry picked from commit e10343315224b4b166767bc7e19fa0b14cc06892)
This commit is contained in:
mtk12968 2020-01-18 09:45:24 +08:00 committed by Howard Ho
parent 6558fc5a6d
commit 02f57d1f7c
4 changed files with 11 additions and 1 deletions

View File

@ -84,6 +84,7 @@ type CAM_CAL_DRV1_device, dev_type;
type CAM_CAL_DRV2_device, dev_type;
type MTK_SMI_device, dev_type;
type mtk_cmdq_device, dev_type;
type mtk_mdp_device, dev_type;
type mtk_rrc_device, dev_type;
type ebc_device, dev_type;
type vow_device, dev_type;

View File

@ -200,6 +200,7 @@
/dev/mtk_sched(/.*)? u:object_r:mtk_sched_device:s0
/dev/MTK_SMI(/.*)? u:object_r:MTK_SMI_device:s0
/dev/mtk_cmdq(/.*)? u:object_r:mtk_cmdq_device:s0
/dev/mdp_sync(/.*)? u:object_r:mtk_mdp_device:s0
/dev/mtk_rrc(/.*)? u:object_r:mtk_rrc_device:s0
/dev/mtk_dfrc(/.*)? u:object_r:mtk_dfrc_device:s0
/dev/mt-mdp(/.*)? u:object_r:mt_mdp_device:s0

View File

@ -44,3 +44,8 @@ binder_call(hal_graphics_composer_default, mtk_hal_power)
# Purpose: Allow to access property
set_prop(hal_graphics_composer_default, graphics_hwc_pid_prop)
get_prop(hal_graphics_composer_default, graphics_hwc_pid_prop)
# Date : WK18.03
# Purpose: Allow to access property dev/mdp_sync
#============= hal_graphics_composer_default ==============
allow hal_graphics_composer_default mtk_mdp_device:chr_file { read write open ioctl };

File diff suppressed because one or more lines are too long