diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-11-01 16:31:02 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-07 19:31:35 -0500 |
commit | c6bb3ca27d78b902baa143b931a8d9ef53298afa (patch) | |
tree | 22bf022af19f0f2b39c4e77b8da8210a7e81e92a /fs/nfsd/nfs4state.c | |
parent | acb2887e04c2140c2c63c8bf94e0b446efcc7001 (diff) | |
download | op-kernel-dev-c6bb3ca27d78b902baa143b931a8d9ef53298afa.zip op-kernel-dev-c6bb3ca27d78b902baa143b931a8d9ef53298afa.tar.gz |
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/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index db7258c..dbbbd2f 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -957,6 +957,7 @@ void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4 new->se_cb_seq_nr = 1; new->se_flags = cses->flags; new->se_cb_prog = cses->callback_prog; + new->se_cb_sec = cses->cb_sec; kref_init(&new->se_ref); idx = hash_sessionid(&new->se_sessionid); spin_lock(&client_lock); |