[PATCH] [BZ #18433] Check file access/existence before forking.
navid Rahimi
rahimi.nv@gmail.com
Fri Sep 11 19:46:00 GMT 2015
For second patch should I create another request for review or sending
it here is not problematic (since in new patch I am using pipes to
communicate between parent and child it is kinda v2 ) ?
best wishes,
-navid
On Fri, Sep 11, 2015 at 10:52 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> doing an access/stat/whatever doesn't solve the issue you described --
> as others have pointed out, there's a TOCTOU race, but there's also no
> guarantee that doing a stat/access on mode bits means you can actually
> execute that file and/or that the exec will succeed. since this doesn't
> actually fix the problem you've described (and others have pointed out
> that it's not a spec violation), then this patch as-is is dead.
> -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix_spawn.patch
Type: text/x-patch
Size: 4597 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150911/019ca7ec/attachment.bin>
More information about the Libc-alpha
mailing list