Home
last modified time | relevance | path

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

/Linux-v5.4/net/key/
Daf_key.c444 static inline int pfkey_sec_ctx_len(const struct sadb_x_sec_ctx *sec_ctx) in pfkey_sec_ctx_len() argument
447 sec_ctx->sadb_x_ctx_len, in pfkey_sec_ctx_len()
453 const struct sadb_x_sec_ctx *sec_ctx = p; in verify_sec_ctx_len() local
454 int len = sec_ctx->sadb_x_ctx_len; in verify_sec_ctx_len()
459 len = pfkey_sec_ctx_len(sec_ctx); in verify_sec_ctx_len()
461 if (sec_ctx->sadb_x_sec_len != len) in verify_sec_ctx_len()
467 …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
471 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()
478 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()
479 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()
[all …]
/Linux-v5.4/include/linux/
Dsecurity.h1573 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1577 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1592 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
1613 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
Dlsm_hooks.h1771 struct xfrm_user_sec_ctx *sec_ctx,
1778 struct xfrm_user_sec_ctx *sec_ctx);
/Linux-v5.4/fs/ceph/
Dxattr.c1210 &as_ctx->sec_ctx, in ceph_security_init_secctx()
1261 ceph_pagelist_append(pagelist, as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_security_init_secctx()
1279 security_release_secctx(as_ctx->sec_ctx, as_ctx->sec_ctxlen); in ceph_release_acl_sec_ctx()
Dsuper.h952 void *sec_ctx; member
/Linux-v5.4/security/
Dsecurity.c2228 struct xfrm_user_sec_ctx *sec_ctx, in security_xfrm_policy_alloc() argument
2231 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
2253 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc() argument
2255 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()