Lines Matching refs:uctx
106 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local
111 uctx = nla_data(rt); in verify_sec_ctx_len()
112 if (uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) in verify_sec_ctx_len()
753 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local
755 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx()
761 uctx = nla_data(attr); in copy_sec_ctx()
762 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()
763 uctx->len = ctx_size; in copy_sec_ctx()
764 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()
765 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx()
766 uctx->ctx_len = s->ctx_len; in copy_sec_ctx()
767 memcpy(uctx + 1, s->ctx_str, s->ctx_len); in copy_sec_ctx()
1336 struct xfrm_user_sec_ctx *uctx; in copy_from_user_sec_ctx() local
1341 uctx = nla_data(rt); in copy_from_user_sec_ctx()
1342 return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); in copy_from_user_sec_ctx()
1741 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_get_policy() local
1743 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_get_policy()
2032 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_add_pol_expire() local
2034 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_add_pol_expire()