diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2014-06-22 02:52:17 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-13 00:41:25 +0200 |
commit | f11b2a1cfbf5dd783eb55cb470509d06e20d1c78 (patch) | |
tree | 3e7ecb73670953ef7067551582dd3c432736a86c /fs/nfs_common/nfsacl.c | |
parent | sunrpc: add a new "stringify_acceptor" rpc_credop (diff) | |
download | linux-f11b2a1cfbf5dd783eb55cb470509d06e20d1c78.tar.xz linux-f11b2a1cfbf5dd783eb55cb470509d06e20d1c78.zip |
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 <jlayton@poochiereds.net>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs_common/nfsacl.c')
0 files changed, 0 insertions, 0 deletions