Home
last modified time | relevance | path

Searched refs:sec_ctx (Results 1 – 4 of 4) sorted by relevance

/linux-4.4.14/net/key/
Daf_key.c413 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument
416 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()
422 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local
423 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len()
428 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()
430 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len()
436 …inline struct xfrm_user_sec_ctx *pfkey_sadb2xfrm_user_sec_ctx(const struct sadb_x_sec_ctx *sec_ctx, in pfkey_sadb2xfrm_user_sec_ctx() argument
440 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()
447 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()
448 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()
[all …]
/linux-4.4.14/include/linux/
Dsecurity.h1351 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1355 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1370 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
1391 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
Dlsm_hooks.h1577 struct xfrm_user_sec_ctx *sec_ctx,
1584 struct xfrm_user_sec_ctx *sec_ctx);
/linux-4.4.14/security/
Dsecurity.c1396 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
1399 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
1421 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
1423 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()