mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +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:
@@ -47,3 +47,8 @@
|
||||
#if __LINUX_KERNEL_VERSION < 0x030300
|
||||
# undef __ASSUME_SENDMMSG_SYSCALL
|
||||
#endif
|
||||
|
||||
/* Support for the execveat syscall was added in 4.0. */
|
||||
#if __LINUX_KERNEL_VERSION < 0x040000
|
||||
# undef __ASSUME_EXECVEAT
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user