From 24cdf7e61e9bbf5eed2e148a65fc6e3cfffbe4ae Mon Sep 17 00:00:00 2001 From: mtk10721 Date: Sat, 18 Jan 2020 10:19:25 +0800 Subject: [PATCH] [ALPS04758146] fix selinux [Detail] ioctl is not allowed [Solution] Fix it MTK-Commit-Id: 92a8921309a104dab501f57264e8939a57df0c30 Change-Id: I670513bdc93979217ea068b0aca61e1bda11364f CR-Id: ALPS04758146 Feature: [Android Default] Camera Application Basic Functions --- non_plat/mtk_hal_camera.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/non_plat/mtk_hal_camera.te b/non_plat/mtk_hal_camera.te index d424a15..82ceb18 100644 --- a/non_plat/mtk_hal_camera.te +++ b/non_plat/mtk_hal_camera.te @@ -343,3 +343,8 @@ allow mtk_hal_camera sysfs_dt_firmware_android:dir search; # 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; + +# Date: 2019/08/27 +# Operation : For android Q allowing ioctl +allow mtk_hal_camera mtk_hal_camera:unix_stream_socket { ioctl }; +allowxperm mtk_hal_camera mtk_hal_camera:unix_stream_socket ioctl IIOCNETAIF; \ No newline at end of file