From 23ccea8b377e140b926b4286ce6f5e55fe20edc3 Mon Sep 17 00:00:00 2001 From: Domagoj Stolfa Date: Wed, 3 Apr 2024 11:56:47 +0100 Subject: [PATCH] c18n: Add a libunwind policy. --- libexec/rtld-elf/rtld_c18n_policy.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libexec/rtld-elf/rtld_c18n_policy.txt b/libexec/rtld-elf/rtld_c18n_policy.txt index 5e40aebd6801..4c37e161859f 100644 --- a/libexec/rtld-elf/rtld_c18n_policy.txt +++ b/libexec/rtld-elf/rtld_c18n_policy.txt @@ -4,6 +4,9 @@ compartment [TCB] libc.so.7 libthr.so.3 +compartment [libunwind] + libgcc_s.so.1 + caller * trust memset @@ -67,3 +70,11 @@ export to [TCB] _rtld_sighandler _rtld_setjmp _rtld_longjmp + +callee [RTLD] +export to [libunwind] + _rtld_unw_getcontext + _rtld_unw_getcontext_unsealed + _rtld_unw_setcontext + _rtld_unw_setcontext_unsealed + _rtld_unw_getsealer