This is the mail archive of the
mailing list for the glibc project.
Re: Request for comments: reserving a value for O_SEARCH and O_EXEC
- From: Christoph Hellwig <hch at lst dot de>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: linux-api at vger dot kernel dot org, "Joseph S. Myers" <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Tue, 6 Aug 2013 17:54:15 +0200
- Subject: Re: Request for comments: reserving a value for O_SEARCH and O_EXEC
- References: <20130805222544 dot GA19168 at brightrain dot aerifal dot cx> <20130806055425 dot GA9280 at lst dot de> <20130806134254 dot GT221 at brightrain dot aerifal dot cx> <20130806140321 dot GA4421 at lst dot de> <20130806143609 dot GV221 at brightrain dot aerifal dot cx> <20130806145159 dot GA8192 at lst dot de> <20130806152316 dot GW221 at brightrain dot aerifal dot cx>
On Tue, Aug 06, 2013 at 11:23:16AM -0400, Rich Felker wrote:
> > For that we'd also want to move fexec(ve) into the kernel space.
> I agree this would be useful, but it's a separate issue.
I don't think it is. The whole point of O_EXEC is to support fexecve.
Without moving it to kernel I can't see how you can make it strictly
conforming to this requirement in Posix that the file descriptor
must be valid for executing.
Fortunately enough the kernel implementation is trivial.