diff --git a/non_plat/device.te b/non_plat/device.te index bdda192..28fb117 100644 --- a/non_plat/device.te +++ b/non_plat/device.te @@ -51,6 +51,7 @@ type hid_keyboard_device, dev_type; type btn_device, dev_type; type uinput_device, dev_type; type TV_out_device, dev_type; +type gz_device, dev_type; type camera_sysram_device, dev_type; type camera_isp_device, dev_type; type camera_dip_device, dev_type; diff --git a/non_plat/file_contexts b/non_plat/file_contexts index ef125ea..cda8e91 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -112,6 +112,7 @@ /dev/CAM_CAL_DRV(/.*)? u:object_r:CAM_CAL_DRV_device:s0 /dev/CAM_CAL_DRV1(/.*)? u:object_r:CAM_CAL_DRV1_device:s0 /dev/CAM_CAL_DRV2(/.*)? u:object_r:CAM_CAL_DRV2_device:s0 +/dev/gz_kree(/.*)? u:object_r:gz_device:s0 /dev/camera-fdvt(/.*)? u:object_r:camera_fdvt_device:s0 /dev/camera-isp(/.*)? u:object_r:camera_isp_device:s0 /dev/camera-dip(/.*)? u:object_r:camera_dip_device:s0 diff --git a/non_plat/mtk_hal_camera.te b/non_plat/mtk_hal_camera.te index 2970550..0256e6b 100644 --- a/non_plat/mtk_hal_camera.te +++ b/non_plat/mtk_hal_camera.te @@ -301,3 +301,8 @@ allow mtk_hal_camera nvcfg_file:dir create_dir_perms; allow mtk_hal_camera nvcfg_file:file { read write getattr setattr open create }; allow mtk_hal_camera mnt_vendor_file:dir search; allow mtk_hal_camera mnt_vendor_file:file create_file_perms; + +# Date : WK18.35 +# Purpose: allow mtk_hal_camera to access gz_device node +allow mtk_hal_camera gz_device:chr_file rw_file_perms; +