This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [BZ #18433] Check file access/existence before forking.


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

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]