[lkml]   [1999]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC] File flags handling - proposal for API.

    On Fri, 25 Jun 1999, Wolfgang Walter wrote:
    > how will such a 'directory which can be opened as file' behave compared to
    > 2.0?
    > If a simple
    > fp = open(<directory>, O_RDONLY)
    > opens a default-file in <directory> instead of <directory> itself, then we
    > have (at least compared to 2.0) a rather subtile change which may implies
    > some severe security problems.

    But the thing is, that we want to disallow opening the directory that way
    _anyway_. It's going to happen: if you want to open the directory, you
    will have to use the O_DIRECTORY flag. The current libraries do that
    already for opendir().


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:52    [W:0.020 / U:19.680 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site