• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sunrpc/auth_gss/

Lines Matching refs:cred

109 gss_cred_set_ctx(struct rpc_cred *cred, struct gss_cl_ctx *ctx)
111 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
116 cred->cr_flags |= RPCAUTH_CRED_UPTODATE;
117 cred->cr_flags &= ~RPCAUTH_CRED_NEW;
124 gss_cred_is_uptodate_ctx(struct rpc_cred *cred)
126 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
130 if ((cred->cr_flags & RPCAUTH_CRED_UPTODATE) && gss_cred->gc_ctx)
166 gss_cred_get_ctx(struct rpc_cred *cred)
168 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
203 /* First unsigned int gives the lifetime (in seconds) of the cred */
363 gss_setup_upcall(struct rpc_clnt *clnt, struct gss_auth *gss_auth, struct rpc_cred *cred)
367 gss_new = gss_alloc_msg(gss_auth, cred->cr_uid);
385 struct rpc_cred *cred = task->tk_msg.rpc_cred;
388 struct gss_cred *gss_cred = container_of(cred,
394 cred->cr_uid);
395 gss_msg = gss_setup_upcall(task->tk_client, gss_auth, cred);
415 task->tk_pid, cred->cr_uid, err);
422 struct rpc_cred *cred = &gss_cred->gc_base;
427 dprintk("RPC: gss_upcall for uid %u\n", cred->cr_uid);
428 gss_msg = gss_setup_upcall(gss_auth->client, gss_auth, cred);
448 gss_cred_set_ctx(cred, gss_get_ctx(gss_msg->ctx));
456 cred->cr_uid, err);
490 struct rpc_cred *cred;
539 cred = rpcauth_lookup_credcache(clnt->cl_auth, &acred, RPCAUTH_LOOKUP_NEW);
540 if (IS_ERR(cred)) {
541 err = PTR_ERR(cred);
544 gss_cred_set_ctx(cred, gss_get_ctx(ctx));
686 * to create a new cred or context, so they check that things have been
703 struct gss_cred *cred = container_of(rc, struct gss_cred, gc_base);
707 if (cred->gc_ctx)
708 gss_put_ctx(cred->gc_ctx);
709 kfree(cred);
713 * Lookup RPCSEC_GSS cred for the current process
725 struct gss_cred *cred = NULL;
731 if (!(cred = kzalloc(sizeof(*cred), GFP_KERNEL)))
734 atomic_set(&cred->gc_count, 1);
735 cred->gc_uid = acred->uid;
740 cred->gc_flags = 0;
741 cred->gc_base.cr_ops = &gss_credops;
742 cred->gc_base.cr_flags = RPCAUTH_CRED_NEW;
743 cred->gc_service = gss_auth->service;
744 return &cred->gc_base;
752 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred)
755 struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base);
790 struct rpc_cred *cred = task->tk_msg.rpc_cred;
791 struct gss_cred *gss_cred = container_of(cred, struct gss_cred,
793 struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
830 cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE;
855 struct rpc_cred *cred = task->tk_msg.rpc_cred;
856 struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
880 cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE;
897 gss_wrap_req_integ(struct rpc_cred *cred, struct gss_cl_ctx *ctx,
934 cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE;
990 gss_wrap_req_priv(struct rpc_cred *cred, struct gss_cl_ctx *ctx,
1033 cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE;
1056 struct rpc_cred *cred = task->tk_msg.rpc_cred;
1057 struct gss_cred *gss_cred = container_of(cred, struct gss_cred,
1059 struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
1075 status = gss_wrap_req_integ(cred, ctx, encode,
1079 status = gss_wrap_req_priv(cred, ctx, encode,
1090 gss_unwrap_resp_integ(struct rpc_cred *cred, struct gss_cl_ctx *ctx,
1120 cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE;
1127 gss_unwrap_resp_priv(struct rpc_cred *cred, struct gss_cl_ctx *ctx,
1145 cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE;
1159 struct rpc_cred *cred = task->tk_msg.rpc_cred;
1160 struct gss_cred *gss_cred = container_of(cred, struct gss_cred,
1162 struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
1174 status = gss_unwrap_resp_integ(cred, ctx, rqstp, &p);
1179 status = gss_unwrap_resp_priv(cred, ctx, rqstp, &p);