diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-11-05 16:01:48 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-07 19:40:05 -0500 |
commit | 12fc3e92d4b18b4e99af624586e1696479ff36ce (patch) | |
tree | c3e43c4389da8bbbf8de90f044773fc236edfc9c /fs/nfsd/nfs4callback.c | |
parent | 57725155dc1b8c78b7a96886d5cdc69dc89e9c54 (diff) |
nfsd4: backchannel should use client-provided security flavor
For now this only adds support for AUTH_NULL. (Previously we assumed
AUTH_UNIX.) We'll also need AUTH_GSS, which is trickier.
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, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index a1aa18db08f..7bb187ac149 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -692,7 +692,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c | |||
692 | args.bc_xprt = conn->cb_xprt; | 692 | args.bc_xprt = conn->cb_xprt; |
693 | args.prognumber = clp->cl_cb_session->se_cb_prog; | 693 | args.prognumber = clp->cl_cb_session->se_cb_prog; |
694 | args.protocol = XPRT_TRANSPORT_BC_TCP; | 694 | args.protocol = XPRT_TRANSPORT_BC_TCP; |
695 | args.authflavor = RPC_AUTH_UNIX; | 695 | args.authflavor = ses->se_cb_sec.flavor; |
696 | } | 696 | } |
697 | /* Create RPC client */ | 697 | /* Create RPC client */ |
698 | client = rpc_create(&args); | 698 | client = rpc_create(&args); |
@@ -709,7 +709,6 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c | |||
709 | clp->cl_cb_client = client; | 709 | clp->cl_cb_client = client; |
710 | clp->cl_cb_cred = cred; | 710 | clp->cl_cb_cred = cred; |
711 | return 0; | 711 | return 0; |
712 | |||
713 | } | 712 | } |
714 | 713 | ||
715 | static void warn_no_callback_path(struct nfs4_client *clp, int reason) | 714 | static void warn_no_callback_path(struct nfs4_client *clp, int reason) |