Lines Matching refs:gss_cred
118 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_set_ctx() local
123 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx()
132 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_get_ctx() local
136 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_cred_get_ctx()
356 gss_handle_downcall_result(struct gss_cred *gss_cred, struct gss_upcall_msg *gss_msg) in gss_handle_downcall_result() argument
362 clear_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
363 gss_cred_set_ctx(&gss_cred->gc_base, gss_msg->ctx); in gss_handle_downcall_result()
366 set_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
368 gss_cred->gc_upcall_timestamp = jiffies; in gss_handle_downcall_result()
369 gss_cred->gc_upcall = NULL; in gss_handle_downcall_result()
376 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback() local
377 struct gss_cred, gc_base); in gss_upcall_callback()
378 struct gss_upcall_msg *gss_msg = gss_cred->gc_upcall; in gss_upcall_callback()
382 gss_handle_downcall_result(gss_cred, gss_msg); in gss_upcall_callback()
547 struct gss_cred *gss_cred = container_of(cred, in gss_setup_upcall() local
548 struct gss_cred, gc_base); in gss_setup_upcall()
552 gss_new = gss_alloc_msg(gss_auth, uid, gss_cred->gc_principal); in gss_setup_upcall()
582 struct gss_cred *gss_cred = container_of(cred, in gss_refresh_upcall() local
583 struct gss_cred, gc_base); in gss_refresh_upcall()
604 if (gss_cred->gc_upcall != NULL) in gss_refresh_upcall()
605 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
607 gss_cred->gc_upcall = gss_msg; in gss_refresh_upcall()
612 gss_handle_downcall_result(gss_cred, gss_msg); in gss_refresh_upcall()
624 gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_create_upcall() argument
629 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall()
673 trace_rpcgss_ctx_init(gss_cred); in gss_create_upcall()
1215 static struct gss_cred *
1216 gss_dup_cred(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_dup_cred() argument
1218 struct gss_cred *new; in gss_dup_cred()
1221 new = kzalloc(sizeof(*gss_cred), GFP_NOFS); in gss_dup_cred()
1224 .cred = gss_cred->gc_base.cr_cred, in gss_dup_cred()
1227 rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_dup_cred()
1233 new->gc_service = gss_cred->gc_service; in gss_dup_cred()
1234 new->gc_principal = gss_cred->gc_principal; in gss_dup_cred()
1251 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_send_destroy_context() local
1253 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_send_destroy_context()
1254 struct gss_cred *new; in gss_send_destroy_context()
1257 new = gss_dup_cred(gss_auth, gss_cred); in gss_send_destroy_context()
1261 trace_rpcgss_ctx_destroy(gss_cred); in gss_send_destroy_context()
1297 gss_free_cred(struct gss_cred *gss_cred) in gss_free_cred() argument
1299 kfree(gss_cred); in gss_free_cred()
1305 struct gss_cred *gss_cred = container_of(head, struct gss_cred, gc_base.cr_rcu); in gss_free_cred_callback() local
1306 gss_free_cred(gss_cred); in gss_free_cred_callback()
1312 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_destroy_nullcred() local
1314 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_destroy_nullcred()
1316 RCU_INIT_POINTER(gss_cred->gc_ctx, NULL); in gss_destroy_nullcred()
1351 struct gss_cred *cred = NULL; in gss_create_cred()
1376 struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base); in gss_cred_init() local
1380 err = gss_create_upcall(gss_auth, gss_cred); in gss_cred_init()
1389 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_stringify_acceptor() local
1395 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1411 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1447 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_key_timeout() local
1453 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_key_timeout()
1464 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_match() local
1472 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_match()
1482 if (gss_cred->gc_principal == NULL) in gss_match()
1484 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
1486 if (gss_cred->gc_principal != NULL) in gss_match()
1504 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_marshal() local
1533 *p++ = cpu_to_be32(gss_cred->gc_service); in gss_marshal()
1577 struct gss_cred *gss_cred = container_of(oldcred, in gss_renew_cred() local
1578 struct gss_cred, in gss_renew_cred()
1583 .principal = gss_cred->gc_principal, in gss_renew_cred()
1601 struct gss_cred *gss_cred; in gss_cred_is_negative_entry() local
1603 gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_is_negative_entry()
1604 begin = gss_cred->gc_upcall_timestamp; in gss_cred_is_negative_entry()
1875 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_wrap_req() local
1888 switch (gss_cred->gc_service) { in gss_wrap_req()
2114 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_unwrap_resp() local
2121 switch (gss_cred->gc_service) { in gss_unwrap_resp()