Skip to content
Snippets Groups Projects
Commit 35a2c85f authored by WANG Xuerui's avatar WANG Xuerui Committed by Laurent Vivier
Browse files

linux-user: Implement faccessat2


User space has been preferring this syscall for a while, due to its
closer match with C semantics, and newer platforms such as LoongArch
apparently have libc implementations that don't fallback to faccessat
so normal access checks are failing without the emulation in place.

Tested by successfully emerging several packages within a Gentoo loong
stage3 chroot, emulated on amd64 with help of static qemu-loongarch64.

Reported-by: default avatarAndreas K. Hüttel <dilfridge@gentoo.org>
Signed-off-by: default avatarWANG Xuerui <xen0n@gentoo.org>
Message-Id: <20221009060813.2289077-1-xen0n@gentoo.org>
[lv: removing defined(__NR_faccessat2) in syscall.c,
     adding defined(TARGET_NR_faccessat2) on print_faccessat()]
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent ed98cdec
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment