Lines Matching refs:uctx
117 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local
122 uctx = nla_data(rt); in verify_sec_ctx_len()
123 if (uctx->len > nla_len(rt) || in verify_sec_ctx_len()
124 uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) { in verify_sec_ctx_len()
926 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local
928 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx()
934 uctx = nla_data(attr); in copy_sec_ctx()
935 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()
936 uctx->len = ctx_size; in copy_sec_ctx()
937 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()
938 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx()
939 uctx->ctx_len = s->ctx_len; in copy_sec_ctx()
940 memcpy(uctx + 1, s->ctx_str, s->ctx_len); in copy_sec_ctx()
1699 struct xfrm_user_sec_ctx *uctx; in copy_from_user_sec_ctx() local
1704 uctx = nla_data(rt); in copy_from_user_sec_ctx()
1705 return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); in copy_from_user_sec_ctx()
2271 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_get_policy() local
2273 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_get_policy()
2582 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_add_pol_expire() local
2584 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_add_pol_expire()