RMX3031: Allow surfaceflinger and mtk hal camera to find mtk mmagent

* 07-28 18:47:44.000   548   548 E SELinux : avc:  denied  { find } for interface=vendor.mediatek.hardware.mmagent::IMMAgent sid=u:r:surfaceflinger:s0 pid=742 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:mtk_hal_mmagent_hwservice:s0 tclass=hwservice_manager permissive=0

07-28 18:46:28.653   548   548 E SELinux : avc:  denied  { find } for interface=vendor.mediatek.hardware.mmagent::IMMAgent sid=u:r:mtk_hal_camera:s0 pid=827 scontext=u:r:mtk_hal_camera:s0 tcontext=u:object_r:mtk_hal_mmagent_hwservice:s0 tclass=hwservice_manager permissive=0

Signed-off-by: Nishant Kumar <www.rajsonu13@gmail.com>
This commit is contained in:
Nishant Kumar
2023-07-28 18:49:16 +05:30
parent 8db73f9830
commit 3da96b7ea9
2 changed files with 2 additions and 0 deletions

View File

@@ -22,3 +22,4 @@ allow mtk_hal_camera proc_boost_pool:file rw_file_perms;
binder_call(mtk_hal_camera, mtk_hal_mmagent)
binder_call(mtk_hal_camera, opluscamera_app)
allow mtk_hal_camera opluscamera_app:fd use;
hal_client_domain(mtk_hal_camera, hal_mtk_mmagent)

View File

@@ -1 +1,2 @@
binder_call(surfaceflinger, mtk_hal_mmagent)
hal_client_domain(surfaceflinger, hal_mtk_mmagent)