diff --git a/sepolicy/ohos_policy/arkcompiler/ets_runtime/public/type.te b/sepolicy/ohos_policy/arkcompiler/ets_runtime/public/type.te index 75f6318e574aa4de17fc635b41c3b77c7201849f..049ca310cc8549735ff6aa9815f4535ffddaaf4f 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 777f8dae86dc22572463799a81859e4533864bba..18ce01157a63368bcaba7e0fb79304adc4b85798 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