From 04acec35f95eaf5479c4470456da19c82889678c Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 28 Mar 2023 15:29:25 -0400 Subject: [PATCH] strace: Add set_memory_protection to area syscalls. --- src/bin/debug/strace/area.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/debug/strace/area.cpp b/src/bin/debug/strace/area.cpp index e16cc93756..d57964d05c 100644 --- a/src/bin/debug/strace/area.cpp +++ b/src/bin/debug/strace/area.cpp @@ -58,4 +58,8 @@ patch_area() map_file->GetParameter("address")->SetInOut(true); map_file->GetParameter("protection")->SetHandler( new FlagsTypeHandler(kAreaProtectionFlags)); + + Syscall *set_memory_protection = get_syscall("_kern_set_memory_protection"); + set_memory_protection->GetParameter("protection")->SetHandler( + new FlagsTypeHandler(kAreaProtectionFlags)); }