From 81a6fb6c62033c573044aa5a48d9256119113bc9 Mon Sep 17 00:00:00 2001 From: "hao.wang" Date: Sat, 18 Jan 2020 10:18:55 +0800 Subject: [PATCH] [ALPS04724423] Add Vcodec in mms sepolicy Add Vcodec device selinux permission. MTK-Commit-Id: 8a70eea017980005696af3e55c1a716d49751e7e Change-Id: Ia6924c9eb35ab0a2a4cc4a2f635507efcd811ba5 CR-Id: ALPS04724423 Feature: Camera Application --- non_plat/mtk_hal_mms.te | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/non_plat/mtk_hal_mms.te b/non_plat/mtk_hal_mms.te index 530b49c..12df5bf 100755 --- a/non_plat/mtk_hal_mms.te +++ b/non_plat/mtk_hal_mms.te @@ -36,5 +36,18 @@ allow mtk_hal_mms proc:file r_file_perms; # Purpose : Allow to use allocator for JPEG hal_client_domain(mtk_hal_mms, hal_allocator) allow mtk_hal_mms mtk_hal_pq:binder call; + +# Purpose : Allow to use graphics allocator fd for gralloc_extra allow mtk_hal_mms hal_graphics_allocator_default:fd use; allow mtk_hal_mms debugfs_ion:dir search; + +# Purpose : VDEC/VENC device node +allow mtk_hal_mms Vcodec_device:chr_file rw_file_perms; +allow mtk_hal_mms proc_mtk_jpeg:file r_file_perms; +allowxperm mtk_hal_mms proc_mtk_jpeg:file ioctl { + JPG_BRIDGE_ENC_IO_INIT + JPG_BRIDGE_ENC_IO_CONFIG + JPG_BRIDGE_ENC_IO_WAIT + JPG_BRIDGE_ENC_IO_DEINIT + JPG_BRIDGE_ENC_IO_START + };