mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 22:18:21 +00:00
syscalls: mprotect
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user