Searched refs:xfrm_policy (Results 1 – 13 of 13) sorted by relevance
| /Linux-v5.4/net/xfrm/ |
| D | xfrm_policy.c | 165 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); 166 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol, 176 static struct xfrm_policy * 177 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy, 180 struct xfrm_policy *policy); 188 static inline bool xfrm_pol_hold_rcu(struct xfrm_policy *policy) in xfrm_pol_hold_rcu() 312 struct xfrm_policy *xp = from_timer(xp, t, timer); in xfrm_policy_timer() 384 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc() 386 struct xfrm_policy *policy; in xfrm_policy_alloc() 388 policy = kzalloc(sizeof(struct xfrm_policy), gfp); in xfrm_policy_alloc() [all …]
|
| D | Makefile | 6 obj-$(CONFIG_XFRM) := xfrm_policy.o xfrm_state.o xfrm_hash.o \
|
| D | xfrm_user.c | 1453 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx() 1465 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates() 1543 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_tmpl() 1583 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy() 1595 static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) in copy_to_user_policy() 1610 static struct xfrm_policy *xfrm_policy_construct(struct net *net, struct xfrm_userpolicy_info *p, s… in xfrm_policy_construct() 1612 struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL); in xfrm_policy_construct() 1649 struct xfrm_policy *xp; in xfrm_add_policy() 1689 static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_tmpl() 1726 static inline int copy_to_user_sec_ctx(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_sec_ctx() [all …]
|
| D | xfrm_state.c | 178 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 1001 static void xfrm_state_look_at(struct xfrm_policy *pol, struct xfrm_state *x, in xfrm_state_look_at() 1041 struct xfrm_policy *pol, int *err, in xfrm_state_find() 2120 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify() 2159 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) in km_query() 2192 void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) in km_policy_expired() 2269 struct xfrm_policy *pol = NULL; in xfrm_user_policy()
|
| /Linux-v5.4/include/net/ |
| D | xfrm.h | 338 void km_policy_notify(struct xfrm_policy *xp, int dir, 344 struct xfrm_policy *pol); 499 struct xfrm_policy { struct 532 static inline struct net *xp_net(const struct xfrm_policy *xp) in xp_net() argument 572 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp); 573 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir); 575 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c); 700 void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, bool task_valid); 701 void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result, 716 static inline void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, in xfrm_audit_policy_add() [all …]
|
| D | sock.h | 400 struct xfrm_policy __rcu *sk_policy[2];
|
| /Linux-v5.4/tools/testing/selftests/net/ |
| D | Makefile | 8 rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh
|
| /Linux-v5.4/security/selinux/include/ |
| D | xfrm.h | 28 struct xfrm_policy *xp,
|
| /Linux-v5.4/net/key/ |
| D | af_key.c | 1903 static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) in check_reqid() 1937 parse_ipsecrequest(struct xfrm_policy *xp, struct sadb_x_ipsecrequest *rq) in parse_ipsecrequest() 1985 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests() 2007 static inline int pfkey_xfrm_policy2sec_ctx_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2sec_ctx_size() 2019 static int pfkey_xfrm_policy2msg_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_size() 2041 static struct sk_buff * pfkey_xfrm_policy2msg_prep(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_prep() 2055 static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) in pfkey_xfrm_policy2msg() 2205 static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) in key_notify_policy() 2243 struct xfrm_policy *xp; in pfkey_spdadd() 2357 struct xfrm_policy *xp; in pfkey_spddelete() [all …]
|
| /Linux-v5.4/security/selinux/ |
| D | xfrm.c | 177 struct xfrm_policy *xp, in selinux_xfrm_state_pol_flow_match()
|
| /Linux-v5.4/include/linux/ |
| D | security.h | 167 struct xfrm_policy; 1584 struct xfrm_policy *xp, 1639 struct xfrm_policy *xp, const struct flowi *fl) in security_xfrm_state_pol_flow_match()
|
| D | lsm_hooks.h | 1787 struct xfrm_policy *xp,
|
| /Linux-v5.4/security/ |
| D | security.c | 2282 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()
|