Lines Matching refs:gss_cred
119 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_set_ctx() local
124 rcu_assign_pointer(gss_cred->gc_ctx, ctx); in gss_cred_set_ctx()
133 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_get_ctx() local
137 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_cred_get_ctx()
357 gss_handle_downcall_result(struct gss_cred *gss_cred, struct gss_upcall_msg *gss_msg) in gss_handle_downcall_result() argument
363 clear_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
364 gss_cred_set_ctx(&gss_cred->gc_base, gss_msg->ctx); in gss_handle_downcall_result()
367 set_bit(RPCAUTH_CRED_NEGATIVE, &gss_cred->gc_base.cr_flags); in gss_handle_downcall_result()
369 gss_cred->gc_upcall_timestamp = jiffies; in gss_handle_downcall_result()
370 gss_cred->gc_upcall = NULL; in gss_handle_downcall_result()
377 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback() local
378 struct gss_cred, gc_base); in gss_upcall_callback()
379 struct gss_upcall_msg *gss_msg = gss_cred->gc_upcall; in gss_upcall_callback()
383 gss_handle_downcall_result(gss_cred, gss_msg); in gss_upcall_callback()
548 struct gss_cred *gss_cred = container_of(cred, in gss_setup_upcall() local
549 struct gss_cred, gc_base); in gss_setup_upcall()
553 gss_new = gss_alloc_msg(gss_auth, uid, gss_cred->gc_principal); in gss_setup_upcall()
583 struct gss_cred *gss_cred = container_of(cred, in gss_refresh_upcall() local
584 struct gss_cred, gc_base); in gss_refresh_upcall()
605 if (gss_cred->gc_upcall != NULL) in gss_refresh_upcall()
606 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
608 gss_cred->gc_upcall = gss_msg; in gss_refresh_upcall()
613 gss_handle_downcall_result(gss_cred, gss_msg); in gss_refresh_upcall()
625 gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_create_upcall() argument
630 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall()
674 trace_rpcgss_ctx_init(gss_cred); in gss_create_upcall()
1217 static struct gss_cred *
1218 gss_dup_cred(struct gss_auth *gss_auth, struct gss_cred *gss_cred) in gss_dup_cred() argument
1220 struct gss_cred *new; in gss_dup_cred()
1223 new = kzalloc(sizeof(*gss_cred), GFP_KERNEL); in gss_dup_cred()
1226 .cred = gss_cred->gc_base.cr_cred, in gss_dup_cred()
1229 rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_dup_cred()
1235 new->gc_service = gss_cred->gc_service; in gss_dup_cred()
1236 new->gc_principal = gss_cred->gc_principal; in gss_dup_cred()
1253 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_send_destroy_context() local
1255 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_send_destroy_context()
1256 struct gss_cred *new; in gss_send_destroy_context()
1259 new = gss_dup_cred(gss_auth, gss_cred); in gss_send_destroy_context()
1263 trace_rpcgss_ctx_destroy(gss_cred); in gss_send_destroy_context()
1299 gss_free_cred(struct gss_cred *gss_cred) in gss_free_cred() argument
1301 kfree(gss_cred); in gss_free_cred()
1307 struct gss_cred *gss_cred = container_of(head, struct gss_cred, gc_base.cr_rcu); in gss_free_cred_callback() local
1308 gss_free_cred(gss_cred); in gss_free_cred_callback()
1314 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_destroy_nullcred() local
1316 struct gss_cl_ctx *ctx = rcu_dereference_protected(gss_cred->gc_ctx, 1); in gss_destroy_nullcred()
1318 RCU_INIT_POINTER(gss_cred->gc_ctx, NULL); in gss_destroy_nullcred()
1354 struct gss_cred *cred = NULL; in gss_create_cred()
1379 struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base); in gss_cred_init() local
1383 err = gss_create_upcall(gss_auth, gss_cred); in gss_cred_init()
1392 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_stringify_acceptor() local
1398 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1414 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_stringify_acceptor()
1450 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_key_timeout() local
1456 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_key_timeout()
1467 struct gss_cred *gss_cred = container_of(rc, struct gss_cred, gc_base); in gss_match() local
1475 ctx = rcu_dereference(gss_cred->gc_ctx); in gss_match()
1485 if (gss_cred->gc_principal == NULL) in gss_match()
1487 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0; in gss_match()
1489 if (gss_cred->gc_principal != NULL) in gss_match()
1507 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_marshal() local
1536 *p++ = cpu_to_be32(gss_cred->gc_service); in gss_marshal()
1580 struct gss_cred *gss_cred = container_of(oldcred, in gss_renew_cred() local
1581 struct gss_cred, in gss_renew_cred()
1586 .principal = gss_cred->gc_principal, in gss_renew_cred()
1604 struct gss_cred *gss_cred; in gss_cred_is_negative_entry() local
1606 gss_cred = container_of(cred, struct gss_cred, gc_base); in gss_cred_is_negative_entry()
1607 begin = gss_cred->gc_upcall_timestamp; in gss_cred_is_negative_entry()
1878 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_wrap_req() local
1891 switch (gss_cred->gc_service) { in gss_wrap_req()
2117 struct gss_cred *gss_cred = container_of(cred, struct gss_cred, in gss_unwrap_resp() local
2124 switch (gss_cred->gc_service) { in gss_unwrap_resp()