1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Linux: Use faccessat2 to implement faccessat (bug 18683)

This provides correct AT_EACCESS handling and also takes
Linux security modules into account.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer
2020-08-07 22:06:59 +02:00
parent 268ed383b5
commit 3d3ab573a5
2 changed files with 19 additions and 3 deletions

View File

@ -214,4 +214,12 @@
# define __ASSUME_WAITID_PID0_P_PGID
#endif
/* The faccessat2 system call was introduced across all architectures
in Linux 5.8. */
#if __LINUX_KERNEL_VERSION >= 0x050800
# define __ASSUME_FACCESSAT2 1
#else
# define __ASSUME_FACCESSAT2 0
#endif
#endif /* kernel-features.h */