diff --git a/non_plat/ioctl_defines b/non_plat/ioctl_defines index f777d82..093ce17 100755 --- a/non_plat/ioctl_defines +++ b/non_plat/ioctl_defines @@ -61,5 +61,8 @@ define(`JPG_BRIDGE_ENC_IO_DEINIT', `0x780e') define(`JPG_BRIDGE_ENC_IO_START', `0x780f') ##################################### # 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_DMA_OP', `0x671d') +define(`MTK_M4U_T_SEC_INIT', `0x6732') \ No newline at end of file diff --git a/non_plat/mtk_hal_camera.te b/non_plat/mtk_hal_camera.te index db30551..9bf5adc 100644 --- a/non_plat/mtk_hal_camera.te +++ b/non_plat/mtk_hal_camera.te @@ -344,7 +344,13 @@ allow mtk_hal_camera sysfs_dt_firmware_android:dir search; # Date: 2019/07/09 # Operation : For M4U security 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 # Operation : For android Q allowing ioctl