diff options
| author | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-11-26 19:08:01 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-11-26 19:08:01 +0000 |
| commit | 848dca8e622f1aa74b75ebaa5a224f231e3bd98e (patch) | |
| tree | ea28c1b59e91d3e55f4709aaba9e3f387070495d /src | |
| parent | 4f03396b35a0bae405294aa3137e0a36c4d6d8c6 (diff) | |
| download | focaccia-848dca8e622f1aa74b75ebaa5a224f231e3bd98e.tar.gz focaccia-848dca8e622f1aa74b75ebaa5a224f231e3bd98e.zip | |
Add support for prlimit and associated emulation
Diffstat (limited to 'src')
| -rw-r--r-- | src/focaccia/qemu/x86.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/focaccia/qemu/x86.py b/src/focaccia/qemu/x86.py index 680f966..c8d2045 100644 --- a/src/focaccia/qemu/x86.py +++ b/src/focaccia/qemu/x86.py @@ -69,6 +69,8 @@ emulated_system_calls = { 93: SyscallInfo('fchown'), 94: SyscallInfo('lchown'), 95: SyscallInfo('umask'), + 97: SyscallInfo('getrlimit', patchup_address_registers=['rsi']), + 98: SyscallInfo('getrusage', patchup_address_registers=['rsi']), 102: SyscallInfo('getuid'), 107: SyscallInfo('geteuid'), 108: SyscallInfo('getegid'), @@ -105,6 +107,7 @@ emulated_system_calls = { 292: SyscallInfo('dup3'), 293: SyscallInfo('pipe2', patchup_address_registers=['rdi']), 297: SyscallInfo('rt_tgsigqueueinfo', patchup_address_registers=['r10']), + 302: SyscallInfo('prlimit64', patchup_address_registers=['r10']), 318: SyscallInfo('getrandom', patchup_address_registers=['rdi']) } |