]> git.karo-electronics.de Git - karo-tx-linux.git/commit
knfsd: Validate filehandle type in fsid_source
authorNeil Brown <neilb@suse.de>
Wed, 5 Sep 2007 21:22:13 +0000 (17:22 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 18:32:00 +0000 (10:32 -0800)
commit830eed76e068db80b68e48d47d2e65ae77d164ee
treea3e98b585aa808906ebfc38c617eb8d02b932759
parent57e344c3223d2079a359053c1d26def29c4ba511
knfsd: Validate filehandle type in fsid_source

patch b8da0d1c27f144bce999c653467106f3f0d5a308 in mainline.

fsid_source decided where to get the 'fsid' number to
return for a GETATTR based on the type of filehandle.
It can be from the device, from the fsid, or from the
UUID.

It is possible for the filehandle to be inconsistent
with the export information, so make sure the export information
actually has the info implied by the value returned by
fsid_source.

Signed-off-by: Neil Brown <neilb@suse.de>
Cc: "Luiz Fernando N. Capitulino" <lcapitulino@gmail.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oliver Pintr <oliver.pntr@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfsfh.c