lkml.org 
[lkml]   [1999]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    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().

    Linus


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

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