diff options
author | Andreas Schwab <schwab@suse.de> | 2017-09-06 17:29:29 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2017-09-19 16:19:14 +0200 |
commit | 43ffc53a352a67672210c9dd4959f6c6b7407e60 (patch) | |
tree | fb92e7e211583667cd6ffcff331e167eccffb9e7 /sysdeps/unix/sysv/linux/kernel-features.h | |
parent | a5dcc87e77cf711bca320e8506a4d4fef25bf4f4 (diff) | |
download | glibc-43ffc53a352a67672210c9dd4959f6c6b7407e60.tar.gz glibc-43ffc53a352a67672210c9dd4959f6c6b7407e60.tar.xz glibc-43ffc53a352a67672210c9dd4959f6c6b7407e60.zip |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/kernel-features.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index 9495db4fef..2e1fe6597a 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -102,3 +102,8 @@ implementation does not assume the __ASSUME_* and instead use a fallback implementation based on p{read,write}v and returning an error for non supported flags. */ + +/* Support for the execveat syscall was added in 3.19. */ +#if __LINUX_KERNEL_VERSION >= 0x031300 +# define __ASSUME_EXECVEAT 1 +#endif |