Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/xfrm/
H A Dxfrm_policy.c174 static void __xfrm_policy_link(struct xfrm_policy *pol, int dir);
175 static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
185 static struct xfrm_policy *
186 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy,
189 struct xfrm_policy *policy);
197 static inline bool xfrm_pol_hold_rcu(struct xfrm_policy *policy) in xfrm_pol_hold_rcu()
321 struct xfrm_policy *xp = from_timer(xp, t, timer); in xfrm_policy_timer()
393 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
395 struct xfrm_policy *policy; in xfrm_policy_alloc()
397 policy = kzalloc(sizeof(struct xfrm_policy), gfp); in xfrm_policy_alloc()
[all …]
H A Dxfrm_user.c1490 static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_sec_ctx()
1502 static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, in copy_templates()
1580 static int copy_from_user_tmpl(struct xfrm_policy *pol, struct nlattr **attrs) in copy_from_user_tmpl()
1620 static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p) in copy_from_user_policy()
1632 static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) in copy_to_user_policy()
1647 static struct xfrm_policy *xfrm_policy_construct(struct net *net, struct xfrm_userpolicy_info *p, s… in xfrm_policy_construct()
1649 struct xfrm_policy *xp = xfrm_policy_alloc(net, GFP_KERNEL); in xfrm_policy_construct()
1686 struct xfrm_policy *xp; in xfrm_add_policy()
1726 static int copy_to_user_tmpl(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_tmpl()
1763 static inline int copy_to_user_sec_ctx(struct xfrm_policy *xp, struct sk_buff *skb) in copy_to_user_sec_ctx()
[all …]
H A DMakefile6 obj-$(CONFIG_XFRM) := xfrm_policy.o xfrm_state.o xfrm_hash.o \
H A Dxfrm_state.c177 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()
2166 void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in km_policy_notify()
2205 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol) in km_query()
2238 void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) in km_policy_expired()
2375 struct xfrm_policy *pol = NULL; in xfrm_user_policy()
/OK3568_Linux_fs/kernel/include/net/
H A Dxfrm.h341 void km_policy_notify(struct xfrm_policy *xp, int dir,
347 struct xfrm_policy *pol);
498 struct xfrm_policy { struct
531 static inline struct net *xp_net(const struct xfrm_policy *xp) in xp_net() argument
571 int (*acquire)(struct xfrm_state *x, struct xfrm_tmpl *, struct xfrm_policy *xp);
572 struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir);
574 int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c);
699 void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, bool task_valid);
700 void xfrm_audit_policy_delete(struct xfrm_policy *xp, int result,
715 static inline void xfrm_audit_policy_add(struct xfrm_policy *xp, int result, in xfrm_audit_policy_add()
[all …]
H A Dsock.h424 struct xfrm_policy __rcu *sk_policy[2];
/OK3568_Linux_fs/kernel/net/key/
H A Daf_key.c1913 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_ipsecrequest *rq) in parse_ipsecrequest()
1995 parse_ipsecrequests(struct xfrm_policy *xp, struct sadb_x_policy *pol) in parse_ipsecrequests()
2017 static inline int pfkey_xfrm_policy2sec_ctx_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2sec_ctx_size()
2029 static int pfkey_xfrm_policy2msg_size(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_size()
2051 static struct sk_buff * pfkey_xfrm_policy2msg_prep(const struct xfrm_policy *xp) in pfkey_xfrm_policy2msg_prep()
2065 static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) in pfkey_xfrm_policy2msg()
2215 static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) in key_notify_policy()
2253 struct xfrm_policy *xp; in pfkey_spdadd()
2367 struct xfrm_policy *xp; in pfkey_spddelete()
[all …]
/OK3568_Linux_fs/kernel/security/selinux/include/
H A Dxfrm.h28 struct xfrm_policy *xp,
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A DMakefile8 rtnetlink.sh xfrm_policy.sh test_blackhole_dev.sh
/OK3568_Linux_fs/kernel/security/selinux/
H A Dxfrm.c177 struct xfrm_policy *xp, in selinux_xfrm_state_pol_flow_match()
/OK3568_Linux_fs/kernel/include/linux/
H A Dsecurity.h174 struct xfrm_policy;
1659 struct xfrm_policy *xp,
1714 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()
H A Dlsm_hook_defs.h356 struct xfrm_policy *xp, const struct flowi_common *flic)
/OK3568_Linux_fs/kernel/security/
H A Dsecurity.c2398 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()
/OK3568_Linux_fs/output/sessions/2025-06-06_01-57-56/
H A D10-kernel-build_2025-06-06_01-57-58.log
H A Dbuild_2025-06-06_01-57-58.log
H A D10-kernel-build.log
H A Dbuild.log