Returning the underlying directory avoids inode aliasing problems, but
is otherwise a security problem in that it exposes part of a filesystem
not otherwise visible. (How many sysadmins know what's below the
mountpoints for something that's routinely coverd?)
This issue has come up several times before, and people have sent in
patches to let nfsd access the underlying directory. I don't think it's
a good thing to do though.
What would be acceptable is to allow the mounted-over inode to be
visible, but nothing further, so that it could become a mountpoint but
not serve to access any normally invisible directories.
Regards,
Bill
-
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/faq.html