From 5deaf73ab0d5d307cab7bffa5bff7031598d1076 Mon Sep 17 00:00:00 2001 From: Lovefool Tai Date: Sat, 18 Jan 2020 10:14:29 +0800 Subject: [PATCH] [ALPS04643911] Fix cameraserver permission GED_IO [Detail] To solve the kernel dump message when switch to stereo mode. Enable the capability of mtk_hal_camera about GED_IO. MTK-Commit-Id: 88e25a18c125c57a1bbf5c40102ef604f556be95 Change-Id: Ia5a462a2264e2b2ed68090c5ce2e24d5f21d9423 CR-Id: ALPS04643911 Feature: [Android Default] Camera Application Basic Functions --- non_plat/mtk_hal_camera.te | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/non_plat/mtk_hal_camera.te b/non_plat/mtk_hal_camera.te index b10a234..e5d93dd 100644 --- a/non_plat/mtk_hal_camera.te +++ b/non_plat/mtk_hal_camera.te @@ -249,7 +249,12 @@ allow mtk_hal_camera gpu_device:chr_file rw_file_perms; ## Purpose: Allow to access ged for gralloc_extra functions allow mtk_hal_camera proc_ged:file {open read write ioctl getattr}; -allowxperm mtk_hal_camera proc_ged:file ioctl { GED_BRIDGE_IO_GE_GET GED_BRIDGE_IO_GE_SET}; +allowxperm mtk_hal_camera proc_ged:file ioctl { + GED_BRIDGE_IO_GE_GET + GED_BRIDGE_IO_GE_SET + GED_BRIDGE_IO_LOG_BUF_GET + GED_BRIDGE_IO_QUERY_INFO +}; ################################################################################ # Date : WK17