1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Use execveat syscall in fexecve (bug 22134)

By using execveat we no longer depend on /proc.  The execveat syscall was
introduced in 3.19, except for a few late comers.
This commit is contained in:
Andreas Schwab
2017-09-06 17:29:29 +02:00
parent a5dcc87e77
commit 43ffc53a35
8 changed files with 142 additions and 1 deletions

View File

@ -27,3 +27,8 @@
#define __ASSUME_RECV_SYSCALL 1
#define __ASSUME_SEND_SYSCALL 1
/* Support for the execveat syscall was added in 4.0. */
#if __LINUX_KERNEL_VERSION < 0x040000
# undef __ASSUME_EXECVEAT
#endif