Sure.
> The future:
> * attacker discovers a directory temporarily open (bad permissions)
> * attacker hardlinks to a subdirectory in it
> * you need yet another security check to check the link count on directories
> matches the number of real files in it, and the check has to watch for
> modifications as it is checking, etc, etc
Not really.
The future:
* you need another security check that checks that the link count on the
directory is 1.
If you don't have a ".." entry, the link count for directories is always
1, except if you have hard links - exactly the way it works for normal
files.
Note that there are many unix tools that know about the directory link
counts, but they also know about ignoring it too - because there are
already many filesystems that do not have the standard unix link count
behaviour.
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/