Searched refs:sec_ctx (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/net/key/ |
D | af_key.c | 458 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument 461 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len() 467 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local 468 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len() 473 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len() 475 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len() 481 …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 485 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx() 492 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx() 493 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx() [all …]
|
/Linux-v4.19/include/linux/ |
D | security.h | 1497 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp); 1501 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx); 1516 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument 1537 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
|
D | lsm_hooks.h | 1730 struct xfrm_user_sec_ctx *sec_ctx, 1737 struct xfrm_user_sec_ctx *sec_ctx);
|
/Linux-v4.19/security/ |
D | security.c | 1625 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument 1628 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc() 1650 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument 1652 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()
|