From 848dca8e622f1aa74b75ebaa5a224f231e3bd98e Mon Sep 17 00:00:00 2001 From: Theofilos Augoustis Date: Wed, 26 Nov 2025 19:08:01 +0000 Subject: Add support for prlimit and associated emulation --- src/focaccia/qemu/x86.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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']) } -- cgit 1.4.1