From e6dcdcf2779466afe987b3c0b63cee179e9085e2 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Wed, 18 Oct 2017 16:32:17 +0200 Subject: [PATCH] base: attach executable memory as such - tracing policy Issue #1723 --- repos/base/src/lib/base/trace.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/repos/base/src/lib/base/trace.cc b/repos/base/src/lib/base/trace.cc index 675dd2668c..15490bc6bf 100644 --- a/repos/base/src/lib/base/trace.cc +++ b/repos/base/src/lib/base/trace.cc @@ -88,7 +88,14 @@ bool Trace::Logger::_evaluate_control() max_event_size = 0; policy_module = 0; - policy_module = env_deprecated()->rm_session()->attach(policy_ds); + enum { + MAX_SIZE = 0, NO_OFFSET = 0, ANY_LOCAL_ADDR = false, + EXECUTABLE = true + }; + + Genode::Region_map * const rm = env_deprecated()->rm_session(); + policy_module = rm->attach(policy_ds, MAX_SIZE, NO_OFFSET, + ANY_LOCAL_ADDR, nullptr, EXECUTABLE); /* relocate function pointers of policy callback table */ for (unsigned i = 0; i < sizeof(Trace::Policy_module)/sizeof(void *); i++) {