This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: exec* vs. initially-closed file descriptors in a set-ID context
- From: Jim Meyering <jim at meyering dot net>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 09 Nov 2005 21:47:39 +0100
- Subject: Re: exec* vs. initially-closed file descriptors in a set-ID context
- References: <87d5laoq58.fsf@rho.meyering.net> <43724D83.9050703@redhat.com>
Ulrich Drepper <drepper@redhat.com> wrote:
> I've changed the code to use the proposed modes. There is one
> additional step in the new code: for the writable descriptor 0 we're now
> using /dev/full which causes the operation to fail even if 0 is
> invalidly is used for writing.
Thanks for the quick fix.
I like the idea of using /dev/full for descriptor 0.
This seems to be the first use of /dev/full in glibc.
Do all of glibc's target systems provide a usable /dev/full?