/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_policy.c | 3 * xfrm_policy.c 169 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); 170 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 180 static struct xfrm_policy * 181 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy, 184 struct xfrm_policy *policy); 192 static inline bool xfrm_pol_hold_rcu(struct xfrm_policy *policy) in xfrm_pol_hold_rcu() 316 struct xfrm_policy *xp = from_timer(xp, t, timer); in xfrm_policy_timer() 384 /* Allocate xfrm_policy [all...] |
H A D | xfrm_user.c | 1744 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx() 1756 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates() 1848 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs, in copy_from_user_tmpl() 1890 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy() 1902 static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) in copy_to_user_policy() 1917 static struct xfrm_policy *xfrm_policy_construct(struct net *net, in xfrm_policy_construct() 1923 struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL); in xfrm_policy_construct() 1970 struct xfrm_policy *xp; in xfrm_add_policy() 2012 static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_tmpl() 2049 static inline int copy_to_user_sec_ctx(struct xfrm_policy *x [all...] |
H A D | xfrm_state.c | 220 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 1094 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at() 1139 struct xfrm_policy *pol, int *err, in xfrm_state_find() 2365 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify() 2404 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) in km_query() 2455 void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) in km_policy_expired() 2592 struct xfrm_policy *pol = NULL; in xfrm_user_policy()
|
H A D | xfrm_device.c | 340 int xfrm_dev_policy_add(struct net *net, struct xfrm_policy *xp, in xfrm_dev_policy_add()
|
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_policy.c | 3 * xfrm_policy.c 169 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); 170 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 180 static struct xfrm_policy * 181 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy, 184 struct xfrm_policy *policy); 192 static inline bool xfrm_pol_hold_rcu(struct xfrm_policy *policy) in xfrm_pol_hold_rcu() 316 struct xfrm_policy *xp = from_timer(xp, t, timer); in xfrm_policy_timer() 384 /* Allocate xfrm_policy [all...] |
H A D | xfrm_user.c | 1512 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx() 1524 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates() 1602 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_tmpl() 1642 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy() 1654 static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) in copy_to_user_policy() 1669 static struct xfrm_policy *xfrm_policy_construct(struct net *net, struct xfrm_userpolicy_info *p, struct nlattr **attrs, int *errp) in xfrm_policy_construct() 1671 struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL); in xfrm_policy_construct() 1708 struct xfrm_policy *xp; in xfrm_add_policy() 1748 static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_tmpl() 1785 static inline int copy_to_user_sec_ctx(struct xfrm_policy *x [all...] |
H A D | xfrm_state.c | 177 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 1003 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at() 1048 struct xfrm_policy *pol, int *err, in xfrm_state_find() 2169 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify() 2208 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) in km_query() 2259 void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) in km_policy_expired() 2396 struct xfrm_policy *pol = NULL; in xfrm_user_policy()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | xfrm.h | 63 - policy rule, struct xfrm_policy (=SPD entry) 68 SPD is plain linear list of xfrm_policy rules, ordered by priority. 364 void km_policy_notify(struct xfrm_policy *xp, int dir, 370 struct xfrm_policy *pol); 519 struct xfrm_policy { struct 554 static inline struct net *xp_net(const struct xfrm_policy *xp) in xp_net() 594 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp); 595 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir); 597 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c); 722 void xfrm_audit_policy_add(struct xfrm_policy *x [all...] |
H A D | sock.h | 442 struct xfrm_policy __rcu *sk_policy[2];
|
/kernel/linux/linux-5.10/include/net/ |
H A D | xfrm.h | 63 - policy rule, struct xfrm_policy (=SPD entry) 68 SPD is plain linear list of xfrm_policy rules, ordered by priority. 346 void km_policy_notify(struct xfrm_policy *xp, int dir, 352 struct xfrm_policy *pol); 503 struct xfrm_policy { struct 536 static inline struct net *xp_net(const struct xfrm_policy *xp) in xp_net() 576 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp); 577 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir); 579 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c); 704 void xfrm_audit_policy_add(struct xfrm_policy *x [all...] |
H A D | sock.h | 432 struct xfrm_policy __rcu *sk_policy[2];
|
/kernel/linux/linux-5.10/security/selinux/include/ |
H A D | xfrm.h | 28 struct xfrm_policy *xp,
|
/kernel/linux/linux-6.6/security/selinux/include/ |
H A D | xfrm.h | 30 struct xfrm_policy *xp,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec.c | 54 static struct mlx5e_ipsec_pol_entry *to_ipsec_pol_entry(struct xfrm_policy *x) in to_ipsec_pol_entry() 999 struct xfrm_policy *x, in mlx5e_xfrm_validate_policy() 1064 struct xfrm_policy *x = pol_entry->x; in mlx5e_ipsec_build_accel_pol_attrs() 1085 static int mlx5e_xfrm_add_policy(struct xfrm_policy *x, in mlx5e_xfrm_add_policy() 1131 static void mlx5e_xfrm_del_policy(struct xfrm_policy *x) in mlx5e_xfrm_del_policy() 1139 static void mlx5e_xfrm_free_policy(struct xfrm_policy *x) in mlx5e_xfrm_free_policy()
|
H A D | ipsec.h | 292 struct xfrm_policy *x;
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | Makefile | 8 rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh
|
/kernel/linux/linux-5.10/net/key/ |
H A D | af_key.c | 1913 static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) in check_reqid() 1947 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() 1999 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() 2021 static inline int pfkey_xfrm_policy2sec_ctx_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2sec_ctx_size() 2033 static int pfkey_xfrm_policy2msg_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_size() 2055 static struct sk_buff * pfkey_xfrm_policy2msg_prep(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_prep() 2069 static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) in pfkey_xfrm_policy2msg() 2219 static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) in key_notify_policy() 2257 struct xfrm_policy *xp; in pfkey_spdadd() 2371 struct xfrm_policy *x in pfkey_spddelete() [all...] |
/kernel/linux/linux-6.6/net/key/ |
H A D | af_key.c | 1908 static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) in check_reqid() 1942 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest() 1994 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() 2016 static inline int pfkey_xfrm_policy2sec_ctx_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2sec_ctx_size() 2028 static int pfkey_xfrm_policy2msg_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_size() 2050 static struct sk_buff * pfkey_xfrm_policy2msg_prep(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_prep() 2064 static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) in pfkey_xfrm_policy2msg() 2214 static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) in key_notify_policy() 2252 struct xfrm_policy *xp; in pfkey_spdadd() 2366 struct xfrm_policy *x in pfkey_spddelete() [all...] |
/kernel/linux/linux-5.10/security/selinux/ |
H A D | xfrm.c | 177 struct xfrm_policy *xp, in selinux_xfrm_state_pol_flow_match() 283 * LSM hook implementation that allocs and transfers uctx spec to xfrm_policy.
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | Makefile | 10 rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh
|
/kernel/linux/linux-6.6/security/selinux/ |
H A D | xfrm.c | 174 struct xfrm_policy *xp, in selinux_xfrm_state_pol_flow_match() 280 * LSM hook implementation that allocs and transfers uctx spec to xfrm_policy.
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | security.h | 176 struct xfrm_policy; 1660 struct xfrm_policy *xp, 1715 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | security.h | 183 struct xfrm_policy; 1760 struct xfrm_policy *xp, 1815 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()
|
H A D | netdevice.h | 1038 int (*xdo_dev_policy_add) (struct xfrm_policy *x, struct netlink_ext_ack *extack); 1039 void (*xdo_dev_policy_delete) (struct xfrm_policy *x); 1040 void (*xdo_dev_policy_free) (struct xfrm_policy *x);
|
/kernel/linux/linux-5.10/security/ |
H A D | security.c | 2457 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()
|