From: Steve Dickson Date: Wed, 9 Sep 2009 19:06:05 +0000 (-0400) Subject: nfsd: restrict filehandles accepted in V4ROOT case X-Git-Tag: v2.6.33-rc1~57^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a816b46d7eba78da11e4025f0af195b32fa464;p=pandora-kernel.git nfsd: restrict filehandles accepted in V4ROOT case On V4ROOT exports, only accept filehandles that are the *root* of some export. This allows mountd to allow or deny access to individual directories and symlinks on the pseudofilesystem. Note that the checks in readdir and lookup are not enough, since a malicious host with access to the network could guess filehandles that they weren't able to obtain through lookup or readdir. Signed-off-by: Steve Dickson Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed