On Thu, Sep 02, 2004 at 11:33:24PM +0100, viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:You don't need kernel support for cd'ing into fs images.
RTFS and you'll see. Individual fs generally knows how to check if it
would be immediately unhappy with given image (not all types do, BTW).
Exact form of checks depends on fs type; for crying out loud, there's
not even a promise that they are mutually exclusive!
so?
A user can stick an USB memory card with _any_ malformed fs data and
make troubles via the automounter or user mounts. Yes, mount might do
some more checks but it sure won't do an fsck.
The user gets what he deserves when sticking crap in an USB port.
And that doesn't mean that the kernel should accept any fs image
when a user tries to cd into the file.