syscalls: mprotect

This commit is contained in:
Matheus
2024-08-21 21:34:26 -03:00
parent dd75dc2d87
commit ad6fb43623
4 changed files with 57 additions and 8 deletions
+3 -1
View File
@@ -82,6 +82,7 @@ extern syscall_getresuid
extern syscall_getresgid
extern syscall_setresuid
extern syscall_setresgid
extern syscall_mprotect
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -166,7 +167,8 @@ dq syscall_getresuid
dq syscall_getresgid
dq syscall_setresuid
dq syscall_setresgid
syscallcount equ 83
dq syscall_mprotect
syscallcount equ 84
section .text
global arch_syscall_entry
; on entry:
+5 -3
View File
@@ -5,7 +5,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 83
#define SYSCALL_COUNT 84
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -91,7 +91,8 @@ static char *name[] = {
"getresuid",
"getresgid",
"setresuid",
"setresgid"
"setresgid",
"mprotect"
};
static char *args[] = {
@@ -177,7 +178,8 @@ static char *args[] = {
"uidp %p euidp %p suidp %p", // getresuid
"gidp %p egidp %p sgidp %p", // getresgid
"uid %d euid %d suid %d", // setresuid
"gid %d egid %d sgid %d" // setresgid
"gid %d egid %d sgid %d", // setresgid
"addr %p len %lu prot %d" // mprotect
};
#endif