Cc: Christoph Hellwig <hch@...>, Tony Jones <tonyj@...>, <linux-kernel@...>, <linux-fsdevel@...>, <chrisw@...>, <linux-security-module@...>, <viro@...>
On Mon, 2007-02-05 at 19:20 -0800, Andreas Gruenbacher wrote:
Who cares? There is no way to export a partial directory, and in any
case the subtree_check crap is borken beyond repair (see cross-directory
renames which lead to actual changes to the filehandle - broken, broken,
broken!!!!).
Wrong. Those create new export points since you are crossing into a
different filesystem.
Huh? Even if you don't pass in a vfsmount, you _still_ need to pass in a
super_block. Inodes are only unique per filesystem.
In fact, on an ideal NFS export, there is no ambiguity between the two
(see above comment about subtree_check) since the entire filesystem will
be exported.
...but we will have Dick Cheney track you down and shoot you if you do.
The point is that you only have to check _one_ argument (the
initialisation of the struct path) instead of having a check for every
function argument in the vfs.
Trond
-
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html