diff --git a/util/change_sysroot.c b/util/change_sysroot.c index 53431da..c246f12 100644 --- a/util/change_sysroot.c +++ b/util/change_sysroot.c @@ -115,7 +115,8 @@ int main(int argc, char **argv) { if (ReplaceString(pid, registers.rsp, (uintptr_t *) ®isters.rdi)) { ptrace(PTRACE_SETREGS, pid, 0, ®isters); } - } else if (registers.orig_rax == SYS_faccessat2 + } else if (registers.orig_rax == 439 /* faccessat2 */ + || registers.orig_rax == SYS_faccessat || registers.orig_rax == SYS_newfstatat || registers.orig_rax == SYS_openat) { if (ReplaceString(pid, registers.rsp, (uintptr_t *) ®isters.rsi)) {