Lines Matching refs:uctx
466 struct xfrm_user_sec_ctx *uctx = NULL;
469 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp);
471 if (!uctx)
474 uctx->len = pfkey_sec_ctx_len(sec_ctx);
475 uctx->exttype = sec_ctx->sadb_x_sec_exttype;
476 uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi;
477 uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg;
478 uctx->ctx_len = sec_ctx->sadb_x_ctx_len;
479 memcpy(uctx + 1, sec_ctx + 1,
480 uctx->ctx_len);
482 return uctx;
1154 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
1156 if (!uctx)
1159 err = security_xfrm_state_alloc(x, uctx);
1160 kfree(uctx);
2299 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
2301 if (!uctx) {
2306 err = security_xfrm_policy_alloc(&xp->security, uctx, GFP_KERNEL);
2307 kfree(uctx);
2401 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL);
2403 if (!uctx)
2406 err = security_xfrm_policy_alloc(&pol_ctx, uctx, GFP_KERNEL);
2407 kfree(uctx);
3325 struct xfrm_user_sec_ctx *uctx;
3336 uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_ATOMIC);
3337 *dir = security_xfrm_policy_alloc(&xp->security, uctx, GFP_ATOMIC);
3338 kfree(uctx);