Home
last modified time | relevance | path

Searched refs:xfrm_sec_ctx (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/security/selinux/
Dxfrm.c55 static inline int selinux_authorizable_ctx(struct xfrm_sec_ctx *ctx) in selinux_authorizable_ctx()
74 static int selinux_xfrm_alloc_user(struct xfrm_sec_ctx **ctxp, in selinux_xfrm_alloc_user()
80 struct xfrm_sec_ctx *ctx = NULL; in selinux_xfrm_alloc_user()
124 static void selinux_xfrm_free(struct xfrm_sec_ctx *ctx) in selinux_xfrm_free()
136 static int selinux_xfrm_delete(struct xfrm_sec_ctx *ctx) in selinux_xfrm_delete()
153 int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid) in selinux_xfrm_policy_lookup()
239 struct xfrm_sec_ctx *ctx = x->security; in selinux_xfrm_skb_sid_ingress()
285 int selinux_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in selinux_xfrm_policy_alloc()
296 int selinux_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, in selinux_xfrm_policy_clone()
297 struct xfrm_sec_ctx **new_ctxp) in selinux_xfrm_policy_clone()
[all …]
/linux-6.1.9/security/selinux/include/
Dxfrm.h15 int selinux_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp,
18 int selinux_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx,
19 struct xfrm_sec_ctx **new_ctxp);
20 void selinux_xfrm_policy_free(struct xfrm_sec_ctx *ctx);
21 int selinux_xfrm_policy_delete(struct xfrm_sec_ctx *ctx);
25 struct xfrm_sec_ctx *polsec, u32 secid);
28 int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid);
/linux-6.1.9/include/linux/
Dsecurity.h55 struct xfrm_sec_ctx;
1701 int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp,
1703 int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp);
1704 void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx);
1705 int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx);
1708 struct xfrm_sec_ctx *polsec, u32 secid);
1711 int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid);
1720 static inline int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in security_xfrm_policy_alloc()
1727 static inline int security_xfrm_policy_clone(struct xfrm_sec_ctx *old, struct xfrm_sec_ctx **new_ct… in security_xfrm_policy_clone()
1732 static inline void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_free()
[all …]
Dlsm_hook_defs.h350 LSM_HOOK(int, 0, xfrm_policy_alloc_security, struct xfrm_sec_ctx **ctxp,
352 LSM_HOOK(int, 0, xfrm_policy_clone_security, struct xfrm_sec_ctx *old_ctx,
353 struct xfrm_sec_ctx **new_ctx)
355 struct xfrm_sec_ctx *ctx)
356 LSM_HOOK(int, 0, xfrm_policy_delete_security, struct xfrm_sec_ctx *ctx)
360 struct xfrm_sec_ctx *polsec, u32 secid)
363 LSM_HOOK(int, 0, xfrm_policy_lookup, struct xfrm_sec_ctx *ctx, u32 fl_secid)
/linux-6.1.9/include/net/
Dxfrm.h274 struct xfrm_sec_ctx *security;
533 struct xfrm_sec_ctx *security;
907 static inline bool xfrm_sec_ctx_match(struct xfrm_sec_ctx *s1, struct xfrm_sec_ctx *s2) in xfrm_sec_ctx_match()
916 static inline bool xfrm_sec_ctx_match(struct xfrm_sec_ctx *s1, struct xfrm_sec_ctx *s2) in xfrm_sec_ctx_match()
1675 struct xfrm_sec_ctx *ctx, int delete,
/linux-6.1.9/security/
Dsecurity.c2452 int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in security_xfrm_policy_alloc()
2460 int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, in security_xfrm_policy_clone()
2461 struct xfrm_sec_ctx **new_ctxp) in security_xfrm_policy_clone()
2466 void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_free()
2472 int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_delete()
2485 struct xfrm_sec_ctx *polsec, u32 secid) in security_xfrm_state_alloc_acquire()
2501 int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid) in security_xfrm_policy_lookup()
/linux-6.1.9/include/uapi/linux/
Dxfrm.h31 struct xfrm_sec_ctx { struct
/linux-6.1.9/net/xfrm/
Dxfrm_compat.c110 [XFRMA_SEC_CTX] = { .len = sizeof(struct xfrm_sec_ctx) },
Dxfrm_user.c575 static inline unsigned int xfrm_user_sec_ctx_size(struct xfrm_sec_ctx *xfrm_ctx) in xfrm_user_sec_ctx_size()
911 static int copy_sec_ctx(struct xfrm_sec_ctx *s, struct sk_buff *skb) in copy_sec_ctx()
2226 struct xfrm_sec_ctx *ctx; in xfrm_get_policy()
2531 struct xfrm_sec_ctx *ctx; in xfrm_add_pol_expire()
2922 [XFRMA_SEC_CTX] = { .len = sizeof(struct xfrm_sec_ctx) },
Dxfrm_policy.c1622 struct xfrm_sec_ctx *ctx) in __xfrm_policy_bysel_ctx()
1644 struct xfrm_sec_ctx *ctx, int delete, int *err) in xfrm_policy_bysel_ctx()
4184 struct xfrm_sec_ctx *ctx = xp->security; in xfrm_audit_common_policyinfo()
Dxfrm_state.c1483 static inline int clone_security(struct xfrm_state *x, struct xfrm_sec_ctx *security) in clone_security()
2782 struct xfrm_sec_ctx *ctx = x->security; in xfrm_audit_helper_sainfo()
/linux-6.1.9/net/key/
Daf_key.c771 struct xfrm_sec_ctx *xfrm_ctx; in __pfkey_xfrm_state2msg()
2015 struct xfrm_sec_ctx *xfrm_ctx = xp->security; in pfkey_xfrm_policy2sec_ctx_size()
2068 struct xfrm_sec_ctx *xfrm_ctx; in pfkey_xfrm_policy2msg()
2367 struct xfrm_sec_ctx *pol_ctx = NULL; in pfkey_spddelete()
3159 struct xfrm_sec_ctx *xfrm_ctx; in pfkey_send_acquire()