From e4dbda893d5f95e717a2b04c0928826ca3a39718 Mon Sep 17 00:00:00 2001 From: bengris32 Date: Sun, 6 Aug 2023 22:06:52 +0100 Subject: [PATCH] sepolicy: basic: non_plat: Allow PQ HAL to use /dev/ion Change-Id: I096876eb593745a30806ebcb23b78100819ecb7b Signed-off-by: bengris32 --- basic/non_plat/mtk_hal_pq.te | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basic/non_plat/mtk_hal_pq.te b/basic/non_plat/mtk_hal_pq.te index e64c09f..22366bf 100644 --- a/basic/non_plat/mtk_hal_pq.te +++ b/basic/non_plat/mtk_hal_pq.te @@ -45,4 +45,7 @@ hal_client_domain(mtk_hal_pq, hal_mtk_mmagent) allow mtk_hal_pq dmabuf_system_heap_device:chr_file r_file_perms; # Purpose : Allow change priority -allow mtk_hal_pq self:capability sys_nice; \ No newline at end of file +allow mtk_hal_pq self:capability sys_nice; + +# Allow PQ HAL to use /dev/ion +allow mtk_hal_pq ion_device:chr_file rw_file_perms;