[ALPS04475916] D2+ Add M4U SELinux Permission

[Detail]
add selinux permission for camera

MTK-Commit-Id: f21aac620680035891c6cab33de49a2c02f659eb

Change-Id: I4a0134dda8c8411be3bb2c3a9c69f1e91803a91e
CR-Id: ALPS04475916
Feature: [Android Default] Camera Application Basic Functions
This commit is contained in:
Haojie Li 2020-01-18 10:20:59 +08:00 committed by Boru Zhao
parent 979f4465f3
commit 5e81b738ca
2 changed files with 11 additions and 2 deletions

View File

@ -61,5 +61,8 @@ define(`JPG_BRIDGE_ENC_IO_DEINIT', `0x780e')
define(`JPG_BRIDGE_ENC_IO_START', `0x780f') define(`JPG_BRIDGE_ENC_IO_START', `0x780f')
##################################### #####################################
# m4u_priv.h # m4u_priv.h
define(`MTK_M4U_T_SEC_INIT', `0x6732') define(`MTK_M4U_T_ALLOC_MVA', `0x6704')
define(`MTK_M4U_T_DEALLOC_MVA', `0x6705')
define(`MTK_M4U_T_CONFIG_PORT', `0x670b') define(`MTK_M4U_T_CONFIG_PORT', `0x670b')
define(`MTK_M4U_T_DMA_OP', `0x671d')
define(`MTK_M4U_T_SEC_INIT', `0x6732')

View File

@ -344,7 +344,13 @@ allow mtk_hal_camera sysfs_dt_firmware_android:dir search;
# Date: 2019/07/09 # Date: 2019/07/09
# Operation : For M4U security # Operation : For M4U security
allow mtk_hal_camera proc_m4u:file r_file_perms; allow mtk_hal_camera proc_m4u:file r_file_perms;
allowxperm mtk_hal_camera proc_m4u:file ioctl MTK_M4U_T_SEC_INIT; allowxperm mtk_hal_camera proc_m4u:file ioctl{
MTK_M4U_T_ALLOC_MVA
MTK_M4U_T_DEALLOC_MVA
MTK_M4U_T_CONFIG_PORT
MTK_M4U_T_DMA_OP
MTK_M4U_T_SEC_INIT
};
# Date: 2019/08/27 # Date: 2019/08/27
# Operation : For android Q allowing ioctl # Operation : For android Q allowing ioctl