Lines Matching refs:uctx
107 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local
112 uctx = nla_data(rt); in verify_sec_ctx_len()
113 if (uctx->len > nla_len(rt) || in verify_sec_ctx_len()
114 uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) in verify_sec_ctx_len()
815 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local
817 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx()
823 uctx = nla_data(attr); in copy_sec_ctx()
824 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()
825 uctx->len = ctx_size; in copy_sec_ctx()
826 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()
827 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx()
828 uctx->ctx_len = s->ctx_len; in copy_sec_ctx()
829 memcpy(uctx + 1, s->ctx_str, s->ctx_len); in copy_sec_ctx()
1502 struct xfrm_user_sec_ctx *uctx; in copy_from_user_sec_ctx() local
1507 uctx = nla_data(rt); in copy_from_user_sec_ctx()
1508 return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); in copy_from_user_sec_ctx()
1955 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_get_policy() local
1957 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_get_policy()
2257 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_add_pol_expire() local
2259 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_add_pol_expire()