diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-11-01 21:31:02 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-08 01:31:35 +0100 |
commit | c6bb3ca27d78b902baa143b931a8d9ef53298afa (patch) | |
tree | 22bf022af19f0f2b39c4e77b8da8210a7e81e92a /fs/nfsd/state.h | |
parent | nfsd4: clean up callback security parsing (diff) | |
download | linux-c6bb3ca27d78b902baa143b931a8d9ef53298afa.tar.xz 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.h | 1 |
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 |