Skip to content

Commit

Permalink
runtime/track_memory_map: print details of forbidden operations
Browse files Browse the repository at this point in the history
  • Loading branch information
fw-immunant committed Feb 2, 2024
1 parent 2b955ca commit 721496b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/track_memory_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 721496b

Please sign in to comment.