diff options
| author | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-11-26 09:40:57 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-11-26 11:53:03 +0000 |
| commit | d50dfbcce4aa35d94a4f0f6973866ce6a0f47d66 (patch) | |
| tree | f2289ce8633fd524b476fd1a842ae4aba61acd7a /src | |
| parent | c1efc9f6a108f9ca3692c8db7cc1ef86e4c11bb7 (diff) | |
| download | focaccia-d50dfbcce4aa35d94a4f0f6973866ce6a0f47d66.tar.gz focaccia-d50dfbcce4aa35d94a4f0f6973866ce6a0f47d66.zip | |
Emulate getter and setter system calls for IDs
Diffstat (limited to 'src')
| -rw-r--r-- | src/focaccia/qemu/x86.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/focaccia/qemu/x86.py b/src/focaccia/qemu/x86.py index eccd0ef..31adb0b 100644 --- a/src/focaccia/qemu/x86.py +++ b/src/focaccia/qemu/x86.py @@ -59,6 +59,24 @@ emulated_system_calls = { 94: SyscallInfo('lchown'), 95: SyscallInfo('umask'), 102: SyscallInfo('getuid'), + 107: SyscallInfo('geteuid'), + 108: SyscallInfo('getegid'), + 109: SyscallInfo('setpgid'), + 110: SyscallInfo('getpgid'), + 111: SyscallInfo('getpgrp'), + 112: SyscallInfo('getsid'), + 113: SyscallInfo('setreuid'), + 114: SyscallInfo('setregid'), + 115: SyscallInfo('getgroups'), + 116: SyscallInfo('setgroups'), + 117: SyscallInfo('setresuid'), + 118: SyscallInfo('getresuid', patchup_address_registers=['rdi', 'rsi', 'rdx']), + 119: SyscallInfo('setresgid'), + 120: SyscallInfo('getresgid', patchup_address_registers=['rdi', 'rsi', 'rdx']), + 121: SyscallInfo('getpgid'), + 122: SyscallInfo('setfsuid'), + 123: SyscallInfo('setfsgid'), + 124: SyscallInfo('getsid'), 213: SyscallInfo('epoll_create'), 232: SyscallInfo('epoll_wait', patchup_address_registers=['rsi']), 233: SyscallInfo('epoll_ctl', patchup_address_registers=['r10']), |