Home
last modified time | relevance | path

Searched refs:xfrm_ctx (Results 1 – 3 of 3) sorted by relevance

/linux-2.6.39/net/key/
Daf_key.c735 struct xfrm_sec_ctx *xfrm_ctx; in __pfkey_xfrm_state2msg() local
759 if ((xfrm_ctx = x->security)) { in __pfkey_xfrm_state2msg()
760 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg()
997 if (xfrm_ctx) { in __pfkey_xfrm_state2msg()
1003 sec_ctx->sadb_x_ctx_doi = xfrm_ctx->ctx_doi; in __pfkey_xfrm_state2msg()
1004 sec_ctx->sadb_x_ctx_alg = xfrm_ctx->ctx_alg; in __pfkey_xfrm_state2msg()
1005 sec_ctx->sadb_x_ctx_len = xfrm_ctx->ctx_len; in __pfkey_xfrm_state2msg()
1006 memcpy(sec_ctx + 1, xfrm_ctx->ctx_str, in __pfkey_xfrm_state2msg()
1007 xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg()
1937 struct xfrm_sec_ctx *xfrm_ctx = xp->security; in pfkey_xfrm_policy2sec_ctx_size() local
[all …]
/linux-2.6.39/security/selinux/ss/
Dservices.c2581 struct context *xfrm_ctx; in security_net_peersid_resolve() local
2616 xfrm_ctx = sidtab_search(&sidtab, xfrm_sid); in security_net_peersid_resolve()
2617 if (!xfrm_ctx) { in security_net_peersid_resolve()
2622 rc = (mls_context_cmp(nlbl_ctx, xfrm_ctx) ? 0 : -EACCES); in security_net_peersid_resolve()
/linux-2.6.39/net/xfrm/
Dxfrm_user.c413 static inline int xfrm_user_sec_ctx_size(struct xfrm_sec_ctx *xfrm_ctx) in xfrm_user_sec_ctx_size() argument
417 if (xfrm_ctx) { in xfrm_user_sec_ctx_size()
419 len += xfrm_ctx->ctx_len; in xfrm_user_sec_ctx_size()