On Tue, Sep 1, 2009 at 6:26 PM, Eric Blake <e...@byu.net> wrote: > Eric Blake <ebb9 <at> byu.net> writes: > >> > I think we need to implement opendir_safer, alongside all the other >> > *_safer modules. Otherwise, opendir can end up placing an open directory >> > fd in one of the standard slots, and end up interfering with the intent of >> > all the other *_safer wrappers. >> >> And here's at least one use case where it matters: >> >> $ find dir -mindepth 1 -ok echo {} \; <&- >> < echo ... dir/sub > ? >> $ echo $? >> 0 > > Here's the preliminary patch series, to be applied on top of my > fchdir/fdopendir series. However, since we are also lacking openat_safer, it > looks like fts will STILL pollute the standard fds. I'll have to add in > another patch for openat-safer, then test with findutils, before calling this > series ready for prime-time.
(Picking up a discussion from some time back) How did this turn out? Thanks, James.