[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need opendir_safer, dirent--.h

From: James Youngman
Subject: Re: need opendir_safer, dirent--.h
Date: Sun, 8 Nov 2009 21:59:13 +0000

On Tue, Sep 1, 2009 at 6:26 PM, Eric Blake <address@hidden> 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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]