Home
last modified time | relevance | path

Searched refs:xfrm_policy (Results 1 – 13 of 13) sorted by relevance

/linux/net/xfrm/
H A Dxfrm_policy.c190 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
191 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
201 static struct xfrm_policy *
202 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy,
211 static inline bool xfrm_pol_hold_rcu(struct xfrm_policy *policy) in xfrm_pol_hold_rcu()
359 struct xfrm_policy *xp = timer_container_of(xp, t, timer); in xfrm_policy_timer()
431 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
433 struct xfrm_policy *policy; in xfrm_policy_alloc()
435 policy = kzalloc_obj(struct xfrm_policy, gfp); in xfrm_policy_alloc()
456 struct xfrm_policy *policy = container_of(head, struct xfrm_policy, rcu); in xfrm_policy_destroy_rcu()
[all …]
H A Dxfrm_user.c2063 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx()
2075 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates()
2168 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs, in copy_from_user_tmpl()
2210 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy()
2222 static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) in copy_to_user_policy()
2237 static struct xfrm_policy *xfrm_policy_construct(struct net *net, in xfrm_policy_construct()
2243 struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL); in xfrm_policy_construct()
2290 struct xfrm_policy *xp; in xfrm_add_policy()
2331 static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_tmpl()
2371 static inline int copy_to_user_sec_ctx(struct xfrm_policy *x
[all...]
H A Dxfrm_state.c232 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
1308 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at()
1358 struct xfrm_policy *pol, int *err, in xfrm_state_find()
2785 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify()
2824 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) in km_query()
2875 void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) in km_policy_expired()
3012 struct xfrm_policy *pol = NULL; in xfrm_user_policy()
H A Dxfrm_device.c359 int xfrm_dev_policy_add(struct net *net, struct xfrm_policy *xp, in xfrm_dev_policy_add()
/linux/include/net/
H A Dxfrm.h400 void km_policy_notify(struct xfrm_policy *xp, int dir,
406 struct xfrm_policy *pol);
634 struct xfrm_policy { struct
670 static inline struct net *xp_net(const struct xfrm_policy *xp) in xp_net() argument
720 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp);
721 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir);
723 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c);
849 void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, bool task_valid);
850 void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result,
865 static inline void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, in xfrm_audit_policy_add()
[all …]
/linux/security/selinux/include/
H A Dxfrm.h30 struct xfrm_policy *xp,
/linux/net/key/
H A Daf_key.c1926 static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) in check_reqid()
1960 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_policy *pol, in parse_ipsecrequest()
2012 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests()
2034 static inline int pfkey_xfrm_policy2sec_ctx_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2sec_ctx_size()
2046 static int pfkey_xfrm_policy2msg_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_size()
2068 static struct sk_buff * pfkey_xfrm_policy2msg_prep(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_prep()
2082 static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) in pfkey_xfrm_policy2msg()
2232 static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) in key_notify_policy()
2270 struct xfrm_policy *xp; in pfkey_spdadd()
2384 struct xfrm_policy *xp; in pfkey_spddelete()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.c54 static struct mlx5e_ipsec_pol_entry *to_ipsec_pol_entry(struct xfrm_policy *x) in to_ipsec_pol_entry()
1173 struct xfrm_policy *x, in mlx5e_xfrm_validate_policy()
1238 struct xfrm_policy *x = pol_entry->x; in mlx5e_ipsec_build_accel_pol_attrs()
1260 static int mlx5e_xfrm_add_policy(struct xfrm_policy *x, in mlx5e_xfrm_add_policy()
1306 static void mlx5e_xfrm_del_policy(struct xfrm_policy *x) in mlx5e_xfrm_del_policy()
1314 static void mlx5e_xfrm_free_policy(struct xfrm_policy *x) in mlx5e_xfrm_free_policy()
H A Dipsec.h304 struct xfrm_policy *x;
/linux/tools/testing/selftests/net/
H A DMakefile136 xfrm_policy.sh \
/linux/security/selinux/
H A Dxfrm.c171 struct xfrm_policy *xp, in selinux_xfrm_state_pol_flow_match()
/linux/include/linux/
H A Dnetdevice.h1057 int (*xdo_dev_policy_add) (struct xfrm_policy *x, struct netlink_ext_ack *extack);
1058 void (*xdo_dev_policy_delete) (struct xfrm_policy *x);
1059 void (*xdo_dev_policy_free) (struct xfrm_policy *x);
/linux/security/
H A Dsecurity.c4936 * is initialized to NULL when the xfrm_policy is allocated.
5055 * Check permission when a flow selects a xfrm_policy for processing XFRMs on a
5078 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()