Searched refs:sec_ctx (Results 1 – 2 of 2) sorted by relevance
| /linux/net/key/ |
| H A D | af_key.c | 440 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument 443 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len() 449 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local 450 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len() 455 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len() 457 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len() 463 …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 467 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx() 474 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx() 475 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx() [all …]
|
| /linux/security/ |
| H A D | security.c | 4932 * @sec_ctx: security label provided by userspace 4941 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() 4944 return call_int_hook(xfrm_policy_alloc_security, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc() 4992 * @sec_ctx: security label provided by userspace 4996 * correspond to @sec_ctx. 5001 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() 5003 return call_int_hook(xfrm_state_alloc, x, sec_ctx); in security_xfrm_state_alloc() 4942 security_xfrm_policy_alloc(struct xfrm_sec_ctx ** ctxp,struct xfrm_user_sec_ctx * sec_ctx,gfp_t gfp) security_xfrm_policy_alloc() argument 5002 security_xfrm_state_alloc(struct xfrm_state * x,struct xfrm_user_sec_ctx * sec_ctx) security_xfrm_state_alloc() argument
|