Home
last modified time | relevance | path

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

/linux-5.19.10/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-5.19.10/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-5.19.10/include/linux/
Dsecurity.h55 struct xfrm_sec_ctx;
1684 int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp,
1686 int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp);
1687 void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx);
1688 int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx);
1691 struct xfrm_sec_ctx *polsec, u32 secid);
1694 int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid);
1703 static inline int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in security_xfrm_policy_alloc()
1710 static inline int security_xfrm_policy_clone(struct xfrm_sec_ctx *old, struct xfrm_sec_ctx **new_ct… in security_xfrm_policy_clone()
1715 static inline void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_free()
[all …]
Dlsm_hook_defs.h348 LSM_HOOK(int, 0, xfrm_policy_alloc_security, struct xfrm_sec_ctx **ctxp,
350 LSM_HOOK(int, 0, xfrm_policy_clone_security, struct xfrm_sec_ctx *old_ctx,
351 struct xfrm_sec_ctx **new_ctx)
353 struct xfrm_sec_ctx *ctx)
354 LSM_HOOK(int, 0, xfrm_policy_delete_security, struct xfrm_sec_ctx *ctx)
358 struct xfrm_sec_ctx *polsec, u32 secid)
361 LSM_HOOK(int, 0, xfrm_policy_lookup, struct xfrm_sec_ctx *ctx, u32 fl_secid)
/linux-5.19.10/include/net/
Dxfrm.h274 struct xfrm_sec_ctx *security;
526 struct xfrm_sec_ctx *security;
900 static inline bool xfrm_sec_ctx_match(struct xfrm_sec_ctx *s1, struct xfrm_sec_ctx *s2) in xfrm_sec_ctx_match()
909 static inline bool xfrm_sec_ctx_match(struct xfrm_sec_ctx *s1, struct xfrm_sec_ctx *s2) in xfrm_sec_ctx_match()
1664 struct xfrm_sec_ctx *ctx, int delete,
/linux-5.19.10/security/
Dsecurity.c2439 int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in security_xfrm_policy_alloc()
2447 int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, in security_xfrm_policy_clone()
2448 struct xfrm_sec_ctx **new_ctxp) in security_xfrm_policy_clone()
2453 void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_free()
2459 int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_delete()
2472 struct xfrm_sec_ctx *polsec, u32 secid) in security_xfrm_state_alloc_acquire()
2488 int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid) in security_xfrm_policy_lookup()
/linux-5.19.10/include/uapi/linux/
Dxfrm.h31 struct xfrm_sec_ctx { struct
/linux-5.19.10/net/xfrm/
Dxfrm_compat.c110 [XFRMA_SEC_CTX] = { .len = sizeof(struct xfrm_sec_ctx) },
Dxfrm_user.c488 static inline unsigned int xfrm_user_sec_ctx_size(struct xfrm_sec_ctx *xfrm_ctx) in xfrm_user_sec_ctx_size()
822 static int copy_sec_ctx(struct xfrm_sec_ctx *s, struct sk_buff *skb) in copy_sec_ctx()
2102 struct xfrm_sec_ctx *ctx; in xfrm_get_policy()
2404 struct xfrm_sec_ctx *ctx; in xfrm_add_pol_expire()
2793 [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()
4185 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()
2772 struct xfrm_sec_ctx *ctx = x->security; in xfrm_audit_helper_sainfo()
/linux-5.19.10/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()
3151 struct xfrm_sec_ctx *xfrm_ctx; in pfkey_send_acquire()