From 98aba4516a159cd4b2a194c732f2e178aaa57d61 Mon Sep 17 00:00:00 2001 From: yangxiaoshuai2022 Date: Mon, 9 Jun 2025 19:36:03 +0800 Subject: [PATCH] add rawheap_translator_exec in file_context Signed-off-by: yangxiaoshuai2022 --- sepolicy/ohos_policy/arkcompiler/ets_runtime/public/type.te | 2 ++ .../ohos_policy/arkcompiler/ets_runtime/system/file_contexts | 1 + 2 files changed, 3 insertions(+) diff --git a/sepolicy/ohos_policy/arkcompiler/ets_runtime/public/type.te b/sepolicy/ohos_policy/arkcompiler/ets_runtime/public/type.te index 75f6318e5..049ca310c 100644 --- a/sepolicy/ohos_policy/arkcompiler/ets_runtime/public/type.te +++ b/sepolicy/ohos_policy/arkcompiler/ets_runtime/public/type.te @@ -14,3 +14,5 @@ type sa_ark_aot_compiler, sa_service_attr; type data_app_el1_arkcache, file_attr, data_file_attr; type data_app_el1_arkprofile, file_attr, data_file_attr; + +type rawheap_translator_exec, exec_attr, file_attr, system_file_attr; diff --git a/sepolicy/ohos_policy/arkcompiler/ets_runtime/system/file_contexts b/sepolicy/ohos_policy/arkcompiler/ets_runtime/system/file_contexts index 777f8dae8..18ce01157 100644 --- a/sepolicy/ohos_policy/arkcompiler/ets_runtime/system/file_contexts +++ b/sepolicy/ohos_policy/arkcompiler/ets_runtime/system/file_contexts @@ -13,6 +13,7 @@ /system/bin/ark_aot_compiler u:object_r:ark_aot_compiler_exec:s0 /system/bin/ark_aot u:object_r:ark_aot_exec:s0 +/system/bin/rawheap_translator u:object_r:rawheap_translator_exec:s0 /data/app/el1/public/aot_compiler(/.*)? u:object_r:data_app_el1_arkcache:s0 /data/app/el1/[0-9]+/aot_compiler(/.*)? u:object_r:data_app_el1_arkprofile:s0 -- Gitee