Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 4 of 4) sorted by relevance

/kernel/bpf/
Dreuseport_array.c22 void bpf_sk_reuseport_detach(struct sock *sk) in bpf_sk_reuseport_detach() argument
26 write_lock_bh(&sk->sk_callback_lock); in bpf_sk_reuseport_detach()
27 socks = __locked_read_sk_user_data_with_flags(sk, SK_USER_DATA_BPF); in bpf_sk_reuseport_detach()
29 WRITE_ONCE(sk->sk_user_data, NULL); in bpf_sk_reuseport_detach()
38 write_unlock_bh(&sk->sk_callback_lock); in bpf_sk_reuseport_detach()
66 struct sock *sk; in reuseport_array_delete_elem() local
77 sk = rcu_dereference_protected(array->ptrs[index], in reuseport_array_delete_elem()
79 if (sk) { in reuseport_array_delete_elem()
80 write_lock_bh(&sk->sk_callback_lock); in reuseport_array_delete_elem()
81 WRITE_ONCE(sk->sk_user_data, NULL); in reuseport_array_delete_elem()
[all …]
Dcgroup.c70 struct sock *sk; in __cgroup_bpf_run_lsm_sock() local
76 sk = (void *)(unsigned long)args[0]; in __cgroup_bpf_run_lsm_sock()
80 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_lsm_sock()
102 cgrp = sock_cgroup_ptr(&sock->sk->sk_cgrp_data); in __cgroup_bpf_run_lsm_socket()
1356 int __cgroup_bpf_run_filter_skb(struct sock *sk, in __cgroup_bpf_run_filter_skb() argument
1366 if (!sk || !sk_fullsock(sk)) in __cgroup_bpf_run_filter_skb()
1369 if (sk->sk_family != AF_INET && sk->sk_family != AF_INET6) in __cgroup_bpf_run_filter_skb()
1372 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_skb()
1373 save_sk = skb->sk; in __cgroup_bpf_run_filter_skb()
1374 skb->sk = sk; in __cgroup_bpf_run_filter_skb()
[all …]
/kernel/
Daudit.c91 struct sock *sk; member
299 return aunet->sk; in audit_get_sk()
693 struct sock *sk; in auditd_send_unicast_skb() local
712 sk = audit_get_sk(net); in auditd_send_unicast_skb()
716 rc = netlink_unicast(sk, skb, portid, 0); in auditd_send_unicast_skb()
744 static int kauditd_send_queue(struct sock *sk, u32 portid, in kauditd_send_queue() argument
765 if (!sk) { in kauditd_send_queue()
774 rc = netlink_unicast(sk, skb, portid, 0); in kauditd_send_queue()
779 sk = NULL; in kauditd_send_queue()
847 struct sock *sk = NULL; in kauditd_thread() local
[all …]
Dauditfilter.c1185 dest->net = get_net(sock_net(NETLINK_CB(request_skb).sk)); in audit_list_rules_send()