mirror of https://gitlab.com/nakst/essence
don't rely on faccessat2 being available
This commit is contained in:
parent
ed7b336757
commit
9a5f157da0
|
@ -115,7 +115,8 @@ int main(int argc, char **argv) {
|
||||||
if (ReplaceString(pid, registers.rsp, (uintptr_t *) ®isters.rdi)) {
|
if (ReplaceString(pid, registers.rsp, (uintptr_t *) ®isters.rdi)) {
|
||||||
ptrace(PTRACE_SETREGS, pid, 0, ®isters);
|
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_newfstatat
|
||||||
|| registers.orig_rax == SYS_openat) {
|
|| registers.orig_rax == SYS_openat) {
|
||||||
if (ReplaceString(pid, registers.rsp, (uintptr_t *) ®isters.rsi)) {
|
if (ReplaceString(pid, registers.rsp, (uintptr_t *) ®isters.rsi)) {
|
||||||
|
|
Loading…
Reference in New Issue