From 7ec8a48285181cc995bc42d1cf0d545b0466e5d2 Mon Sep 17 00:00:00 2001 From: guojin31 Date: Thu, 11 Sep 2025 12:05:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=B3=95=E6=9C=8D=E5=8A=A1=E5=AF=B9=E4=BA=8Esys=5Fprod=5Ffile?= =?UTF-8?q?=E7=9A=84search=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guojin31 --- .../inputmethod_native/system/inputmethod_service.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te b/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te index 379ed327e..95dcf23bc 100644 --- a/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te +++ b/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te @@ -96,3 +96,6 @@ allow inputmethod_service sa_screenlock_service:samgr_class { get }; allow inputmethod_service normal_hap:fd { use }; allow inputmethod_service sa_foundation_dms:samgr_class { get }; + +# avc: denied { search } for pid=1477, comm="/system/bin/sa_main" name="/app" dev="overlay" ino=127 scontext=u:r:inputmethod_service:s0 tcontext=u:object_r:sys_prod_file:s0 tclass=dir permissive=0 +allow inputmethod_service sys_prod_file:dir { search }; \ No newline at end of file -- Gitee From e6c523717b70924e7e5c3a15211be532525b38e2 Mon Sep 17 00:00:00 2001 From: guojin31 Date: Thu, 11 Sep 2025 04:27:29 +0000 Subject: [PATCH 2/2] update sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te. Signed-off-by: guojin31 --- .../inputmethod_native/system/inputmethod_service.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te b/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te index 95dcf23bc..ae0b036a5 100644 --- a/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te +++ b/sepolicy/ohos_policy/miscservices/inputmethod_native/system/inputmethod_service.te @@ -98,4 +98,4 @@ allow inputmethod_service normal_hap:fd { use }; allow inputmethod_service sa_foundation_dms:samgr_class { get }; # avc: denied { search } for pid=1477, comm="/system/bin/sa_main" name="/app" dev="overlay" ino=127 scontext=u:r:inputmethod_service:s0 tcontext=u:object_r:sys_prod_file:s0 tclass=dir permissive=0 -allow inputmethod_service sys_prod_file:dir { search }; \ No newline at end of file +allow inputmethod_service sys_prod_file:dir { search }; -- Gitee