diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-03-28 14:18:16 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-03-28 19:14:36 -0400 |
commit | 4ca1f872cda31fe1cfe5e90e027f7bef4980364c (patch) | |
tree | 18c154d1548ce19b37cbcbc17de1e57cdc065b3a /fs/nfsd/nfs4callback.c | |
parent | 21f72c9f0a6774d104fb655bda6099c378518945 (diff) |
nfsd4: use auth_unix unconditionally on backchannel
This isn't actually correct, but it works with the Linux client, and
agrees with the behavior we used to have before commit 80fc015bdfe.
Later patches will implement the spec-mandated behavior (which is to use
the security parameters explicitly given by the client in create_session
or backchannel_ctl).
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 0840fc4f7e4a..c8e9f637153a 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -645,7 +645,6 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c | |||
645 | .timeout = &timeparms, | 645 | .timeout = &timeparms, |
646 | .program = &cb_program, | 646 | .program = &cb_program, |
647 | .version = 0, | 647 | .version = 0, |
648 | .authflavor = clp->cl_flavor, | ||
649 | .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET), | 648 | .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET), |
650 | }; | 649 | }; |
651 | struct rpc_clnt *client; | 650 | struct rpc_clnt *client; |
@@ -656,6 +655,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c | |||
656 | args.client_name = clp->cl_principal; | 655 | args.client_name = clp->cl_principal; |
657 | args.prognumber = conn->cb_prog, | 656 | args.prognumber = conn->cb_prog, |
658 | args.protocol = XPRT_TRANSPORT_TCP; | 657 | args.protocol = XPRT_TRANSPORT_TCP; |
658 | args.authflavor = clp->cl_flavor; | ||
659 | clp->cl_cb_ident = conn->cb_ident; | 659 | clp->cl_cb_ident = conn->cb_ident; |
660 | } else { | 660 | } else { |
661 | if (!conn->cb_xprt) | 661 | if (!conn->cb_xprt) |
@@ -665,6 +665,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c | |||
665 | args.bc_xprt = conn->cb_xprt; | 665 | args.bc_xprt = conn->cb_xprt; |
666 | args.prognumber = clp->cl_cb_session->se_cb_prog; | 666 | args.prognumber = clp->cl_cb_session->se_cb_prog; |
667 | args.protocol = XPRT_TRANSPORT_BC_TCP; | 667 | args.protocol = XPRT_TRANSPORT_BC_TCP; |
668 | args.authflavor = RPC_AUTH_UNIX; | ||
668 | } | 669 | } |
669 | /* Create RPC client */ | 670 | /* Create RPC client */ |
670 | client = rpc_create(&args); | 671 | client = rpc_create(&args); |