From: Jeff Layton Date: Sun, 22 Jun 2014 00:52:17 +0000 (-0400) Subject: nfs4: copy acceptor name from context to nfs_client X-Git-Tag: omap-for-v3.17/fixes-against-rc2~82^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f11b2a1cfbf5dd783eb55cb470509d06e20d1c78;p=pandora-kernel.git nfs4: copy acceptor name from context to nfs_client The current CB_COMPOUND handling code tries to compare the principal name of the request with the cl_hostname in the client. This is not guaranteed to ever work, particularly if the client happened to mount a CNAME of the server or a non-fqdn. Fix this by instead comparing the cr_principal string with the acceptor name that we get from gssd. In the event that gssd didn't send one down (i.e. it was too old), then we fall back to trying to use the cl_hostname as we do today. Signed-off-by: Jeff Layton Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed