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    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site