Add: faccess2(2) syscall

This commit is contained in:
name 2022-10-24 06:29:21 +02:00 committed by Lucas Ramage
parent 99a8417521
commit f23459ee66
5 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,7 @@ int translate_syscall_enter(Tracee *tracee)
case PR_fchmodat:
case PR_faccessat:
case PR_faccessat2:
case PR_futimesat:
case PR_mknodat:
dirfd = peek_reg(tracee, CURRENT, SYSARG_1);

View File

@ -392,6 +392,7 @@ static FilteredSysnum proot_sysnums[] = {
{ PR_socketcall, FILTER_SYSEXIT },
{ PR_stat, 0 },
{ PR_statx, 0 },
{ PR_faccessat2, 0 },
{ PR_stat64, 0 },
{ PR_statfs, 0 },
{ PR_statfs64, 0 },

View File

@ -277,6 +277,7 @@ static const Sysnum sysnums_x32[] = {
[ 315 ] = PR_sched_getattr,
[ 316 ] = PR_renameat2,
[ 332 ] = PR_statx,
[ 439 ] = PR_faccessat2,
[ 512 ] = PR_rt_sigaction,
[ 513 ] = PR_rt_sigreturn,
[ 514 ] = PR_ioctl,

View File

@ -319,4 +319,5 @@ static const Sysnum sysnums_x86_64[] = {
[ 315 ] = PR_sched_getattr,
[ 316 ] = PR_renameat2,
[ 332 ] = PR_statx,
[ 439 ] = PR_faccessat2,
};

View File

@ -59,6 +59,7 @@ SYSNUM(execve)
SYSNUM(exit)
SYSNUM(exit_group)
SYSNUM(faccessat)
SYSNUM(faccessat2)
SYSNUM(fadvise64)
SYSNUM(fadvise64_64)
SYSNUM(fallocate)