Lines Matching refs:uctx
105 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local
110 uctx = nla_data(rt); in verify_sec_ctx_len()
111 if (uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) in verify_sec_ctx_len()
728 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local
730 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx()
736 uctx = nla_data(attr); in copy_sec_ctx()
737 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()
738 uctx->len = ctx_size; in copy_sec_ctx()
739 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()
740 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx()
741 uctx->ctx_len = s->ctx_len; in copy_sec_ctx()
742 memcpy(uctx + 1, s->ctx_str, s->ctx_len); in copy_sec_ctx()
1313 struct xfrm_user_sec_ctx *uctx; in copy_from_user_sec_ctx() local
1318 uctx = nla_data(rt); in copy_from_user_sec_ctx()
1319 return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); in copy_from_user_sec_ctx()
1718 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_get_policy() local
1720 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_get_policy()
2007 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_add_pol_expire() local
2009 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_add_pol_expire()