Full Disclosure mailing list archives
Re: M$ - so what should they do?
From: Valdis.Kletnieks () vt edu
Date: Tue, 22 Jun 2004 11:59:39 -0400
On Mon, 21 Jun 2004 21:52:36 MDT, Bruce Ediger <eballen1 () qwest net> said:
And you have to open them by path "/dev/null". Just opening "null" won't hurt, unless the current directory happens to be "/dev".
Small nit: Actually, this may or may not be true. There is no *inherent* magic to the /dev directory - it's merely the traditional place such things get put. However, it doesn't matter *where* the file is - it's still a *real* file system entry and not an invisible magic entry... Consider that this *will* work: # cd ./tmp # ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Jun 14 15:42 /dev/null # mknod null c 1 3 # ls -l null crw-r--r-- 1 root root 1, 3 Jun 22 11:51 null There you go - a 'null' device file in the current directory (Incidentally, stopping this sort of thing is why many/most/all Unixoids support a 'nodev' option on the 'mount' command)..... The point remains that on Unixoid systems, it's done in 2 steps. First, the path is resolved down to a final target object (dealing with any /, ., or .. that may be found along the way). Either you get handed a permission error along the way, or you're looking at an object that's visible to you. At that point, the *visible* opject is dealt with in an appropriate manner (regular file, a pipe, a reference to a physical device, and so on). (And yes, I *know* I glossed over a few details, such as the exact semantics of traversing a directory that doesn't have both the r and x bits, and the subtle distinction between the root inode of a mounted filesystem, and the inode of the directory that's the mount point... :)
Attachment:
_bin
Description:
Current thread:
- Re: M$ - so what should they do?, (continued)
- Re: M$ - so what should they do? Michael Schaefer (Jun 21)
- RE: M$ - so what should they do? Dave D. Cawley (Jun 21)
- Re: M$ - so what should they do? Ondrej Krajicek (Jun 21)
- Re: M$ - so what should they do? fd (Jun 21)
- RE: M$ - so what should they do? joe (Jun 21)
- Re: M$ - so what should they do? Bruce Ediger (Jun 21)
- Re: M$ - so what should they do? KF (lists) (Jun 21)
- RE: M$ - so what should they do? joe (Jun 21)
- Re: M$ - so what should they do? Valdis . Kletnieks (Jun 21)
- RE: M$ - so what should they do? Bruce Ediger (Jun 21)
- Re: M$ - so what should they do? Valdis . Kletnieks (Jun 22)
- RE: M$ - so what should they do? joe (Jun 21)
- RE: M$ - so what should they do? Eric Paynter (Jun 21)
- RE: M$ - so what should they do? joe (Jun 21)
- Re: M$ - so what should they do? Valdis . Kletnieks (Jun 21)
- RE: M$ - so what should they do? Eric Paynter (Jun 21)
- Re: PLEASE QUIT YACKING ABOUT M$ Steffen Schumacher (Jun 22)
- Re: PLEASE QUIT YACKING ABOUT M$ Billy B. Bilano (Jun 22)
- RE: PLEASE QUIT YACKING ABOUT M$ Sean Crawford (Jun 22)
- Re: M$ - so what should they do? Aditya, ALD [ Aditya Lalit Deshmukh ] (Jun 22)
- RE: M$ - so what should they do? Ron DuFresne (Jun 21)