Lines Matching refs:gss_cred
116 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_set_ctx() local
121 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx()
159 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_get_ctx() local
163 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_cred_get_ctx()
383 gss_handle_downcall_result(struct gss_cred *gss_cred, struct gss_upcall_msg *gss_msg) in gss_handle_downcall_result() argument
389 clear_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
390 gss_cred_set_ctx(&gss_cred->gc_base, gss_msg->ctx); in gss_handle_downcall_result()
393 set_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
395 gss_cred->gc_upcall_timestamp = jiffies; in gss_handle_downcall_result()
396 gss_cred->gc_upcall = NULL; in gss_handle_downcall_result()
403 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback() local
404 struct gss_cred, gc_base); in gss_upcall_callback()
405 struct gss_upcall_msg *gss_msg = gss_cred->gc_upcall; in gss_upcall_callback()
409 gss_handle_downcall_result(gss_cred, gss_msg); in gss_upcall_callback()
574 struct gss_cred *gss_cred = container_of(cred, in gss_setup_upcall() local
575 struct gss_cred, gc_base); in gss_setup_upcall()
579 gss_new = gss_alloc_msg(gss_auth, uid, gss_cred->gc_principal); in gss_setup_upcall()
609 struct gss_cred *gss_cred = container_of(cred, in gss_refresh_upcall() local
610 struct gss_cred, gc_base); in gss_refresh_upcall()
631 if (gss_cred->gc_upcall != NULL) in gss_refresh_upcall()
632 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
634 gss_cred->gc_upcall = gss_msg; in gss_refresh_upcall()
639 gss_handle_downcall_result(gss_cred, gss_msg); in gss_refresh_upcall()
651 gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_create_upcall() argument
656 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall()
1240 static struct gss_cred *
1241 gss_dup_cred(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_dup_cred() argument
1243 struct gss_cred *new; in gss_dup_cred()
1246 new = kzalloc(sizeof(*gss_cred), GFP_NOFS); in gss_dup_cred()
1249 .cred = gss_cred->gc_base.cr_cred, in gss_dup_cred()
1252 rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_dup_cred()
1258 new->gc_service = gss_cred->gc_service; in gss_dup_cred()
1259 new->gc_principal = gss_cred->gc_principal; in gss_dup_cred()
1276 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_send_destroy_context() local
1278 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_send_destroy_context()
1279 struct gss_cred *new; in gss_send_destroy_context()
1282 new = gss_dup_cred(gss_auth, gss_cred); in gss_send_destroy_context()
1321 gss_free_cred(struct gss_cred *gss_cred) in gss_free_cred() argument
1323 kfree(gss_cred); in gss_free_cred()
1329 struct gss_cred *gss_cred = container_of(head, struct gss_cred, gc_base.cr_rcu); in gss_free_cred_callback() local
1330 gss_free_cred(gss_cred); in gss_free_cred_callback()
1336 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_destroy_nullcred() local
1338 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_destroy_nullcred()
1340 RCU_INIT_POINTER(gss_cred->gc_ctx, NULL); in gss_destroy_nullcred()
1376 struct gss_cred *cred = NULL; in gss_create_cred()
1401 struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base); in gss_cred_init() local
1405 err = gss_create_upcall(gss_auth, gss_cred); in gss_cred_init()
1414 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_stringify_acceptor() local
1420 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1436 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1472 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_key_timeout() local
1478 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_key_timeout()
1489 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_match() local
1497 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_match()
1507 if (gss_cred->gc_principal == NULL) in gss_match()
1509 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
1511 if (gss_cred->gc_principal != NULL) in gss_match()
1529 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_marshal() local
1558 *p++ = cpu_to_be32(gss_cred->gc_service); in gss_marshal()
1602 struct gss_cred *gss_cred = container_of(oldcred, in gss_renew_cred() local
1603 struct gss_cred, in gss_renew_cred()
1608 .principal = gss_cred->gc_principal, in gss_renew_cred()
1625 struct gss_cred *gss_cred; in gss_cred_is_negative_entry() local
1627 gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_is_negative_entry()
1628 begin = gss_cred->gc_upcall_timestamp; in gss_cred_is_negative_entry()
1896 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_wrap_req() local
1909 switch (gss_cred->gc_service) { in gss_wrap_req()
2084 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_unwrap_resp() local
2091 switch (gss_cred->gc_service) { in gss_unwrap_resp()