Messages in this thread | | | Date | Fri, 25 Jun 1999 11:41:13 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [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/
| |