summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJ. Bruce Fields2012-11-01 21:31:02 +0100
committerJ. Bruce Fields2012-11-08 01:31:35 +0100
commitc6bb3ca27d78b902baa143b931a8d9ef53298afa (patch)
tree22bf022af19f0f2b39c4e77b8da8210a7e81e92a /fs/nfsd/state.h
parentnfsd4: clean up callback security parsing (diff)
downloadkernel-qcow2-linux-c6bb3ca27d78b902baa143b931a8d9ef53298afa.tar.gz
kernel-qcow2-linux-c6bb3ca27d78b902baa143b931a8d9ef53298afa.tar.xz
kernel-qcow2-linux-c6bb3ca27d78b902baa143b931a8d9ef53298afa.zip
nfsd4: use callback security parameters in create_session
We're currently ignoring the callback security parameters specified in create_session, and just assuming the client wants auth_sys, because that's all the current linux client happens to care about. But this could cause us callbacks to fail to a client that wanted something different. For now, all we're doing is no longer ignoring the uid and gid passed in the auth_sys case. Further patches will add support for auth_null and gss (and possibly use more of the auth_sys information; the spec wants us to use exactly the credential we're passed, though it's hard to imagine why a client would care). Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index df33e781f36c..bff856c34a32 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -250,6 +250,7 @@ struct nfs4_client {
#define NFSD4_CLIENT_CB_FLAG_MASK (1 << NFSD4_CLIENT_CB_UPDATE | \
1 << NFSD4_CLIENT_CB_KILL)
unsigned long cl_flags;
+ struct rpc_cred *cl_cb_cred;
struct rpc_clnt *cl_cb_client;
u32 cl_cb_ident;
#define NFSD4_CB_UP 0