strace: Add set_memory_protection to area syscalls.

This commit is contained in:
Augustin Cavalier
2023-03-28 15:29:25 -04:00
parent 97685bf91d
commit 04acec35f9
+4
View File
@@ -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));
}