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()
913 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local
915 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx()
921 uctx = nla_data(attr); in copy_sec_ctx()
922 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()
923 uctx->len = ctx_size; in copy_sec_ctx()
924 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()
925 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx()
926 uctx->ctx_len = s->ctx_len; in copy_sec_ctx()
927 memcpy(uctx + 1, s->ctx_str, s->ctx_len); in copy_sec_ctx()
1674 struct xfrm_user_sec_ctx *uctx; in copy_from_user_sec_ctx() local
1679 uctx = nla_data(rt); in copy_from_user_sec_ctx()
1680 return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); in copy_from_user_sec_ctx()
2234 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_get_policy() local
2236 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_get_policy()
2539 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_add_pol_expire() local
2541 err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); in xfrm_add_pol_expire()