From 721496b728ce31603eea6b590a9c9b22a67add58 Mon Sep 17 00:00:00 2001 From: Frances Wingerter Date: Fri, 2 Feb 2024 17:15:21 -0500 Subject: [PATCH] runtime/track_memory_map: print details of forbidden operations --- runtime/track_memory_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/track_memory_map.c b/runtime/track_memory_map.c index 2665d9974..3d02b709d 100644 --- a/runtime/track_memory_map.c +++ b/runtime/track_memory_map.c @@ -837,7 +837,8 @@ bool track_memory_map(pid_t pid, int *exit_status_out, enum trace_mode mode) { return false; } } else if (!is_op_permitted(map, event, &event_info)) { - fprintf(stderr, "forbidden operation requested: %s\n", event_name(event)); + fprintf(stderr, "forbidden operation requested: "); + print_event(event, &event_info); return_syscall_eperm(waited_pid); if (ptrace(continue_request, waited_pid, 0, 0) < 0) { perror("could not PTRACE_SYSCALL");