This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use execveat syscall in fexecve
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 07 Sep 2017 13:27:50 +0200
- Subject: Re: [PATCH] Use execveat syscall in fexecve
- Authentication-results: sourceware.org; auth=none
- References: <mvm8thqdgj1.fsf@suse.de>
* Andreas Schwab:
> By using execveat we no longer depend on /proc. The execveat syscall was
> introduced in 3.19, except for a few late comers.
Ideally, this should have a test that executing “/bin/sh -c true”
works, both with an O_PATH descriptor and a regular descriptor.
The implementation itself (including the AT_EMPTY_PATH flag) and the
__ASSUME_EXECVEAT conditions look good to me.