Searched refs:unix_sk (Results 1 – 11 of 11) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_setsockopt_unix.c | 16 static inline int cmpname(struct unix_sock *unix_sk) in cmpname() argument 21 if (unix_sk->addr->name->sun_path[i] != sun_path[i]) in cmpname() 31 struct unix_sock *unix_sk = ctx->unix_sk; in change_sndbuf() local 34 if (!unix_sk || !unix_sk->addr) in change_sndbuf() 37 if (unix_sk->addr->name->sun_path[0]) in change_sndbuf() 40 if (cmpname(unix_sk)) in change_sndbuf() 44 err = bpf_setsockopt(unix_sk, SOL_SOCKET, SO_SNDBUF, in change_sndbuf() 50 err = bpf_getsockopt(unix_sk, SOL_SOCKE in change_sndbuf() [all...] |
H A D | bpf_iter_unix.c | 27 struct unix_sock *unix_sk = ctx->unix_sk; in dump_unix() local 28 struct sock *sk = (struct sock *)unix_sk; in dump_unix() 32 if (!unix_sk) in dump_unix() 41 unix_sk, in dump_unix() 51 if (unix_sk->addr) { in dump_unix() 52 if (unix_sk->addr->name->sun_path[0]) { in dump_unix() 53 BPF_SEQ_PRINTF(seq, " %s", unix_sk->addr->name->sun_path); in dump_unix() 61 len = unix_sk->addr->len - sizeof(short); in dump_unix() 71 unix_sk in dump_unix() [all...] |
H A D | test_skc_to_unix_sock.c | 16 struct unix_sock *unix_sk; in BPF_PROG() local 22 unix_sk = (struct unix_sock *)bpf_skc_to_unix_sock(sock->sk); in BPF_PROG() 23 if (!unix_sk) in BPF_PROG() 26 if (unix_sk->addr->name->sun_path[0]) in BPF_PROG() 29 len = unix_sk->addr->len - sizeof(short); in BPF_PROG() 35 path[i] = unix_sk->addr->name->sun_path[i]; in BPF_PROG()
|
H A D | bpf_iter.h |
|
/linux/include/net/ |
H A D | af_unix.h | 94 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk) macro 95 #define unix_peer(sk) (unix_sk(sk)->peer) 97 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock) 98 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock)
|
/linux/net/unix/ |
H A D | af_unix.c | 194 if (a->sk_state == TCP_LISTEN && unix_sk(b)->listener == a) in unix_recvq_lock_cmp_fn() 198 if (b->sk_state == TCP_LISTEN && unix_sk(a)->listener == b) in unix_recvq_lock_cmp_fn() 398 smp_store_release(&unix_sk(sk)->addr, addr); in __unix_set_addr_hash() 443 struct unix_sock *u = unix_sk(s); in __unix_find_socket_byname() 473 struct dentry *dentry = unix_sk(s)->path.dentry; in unix_find_socket_byinode() 518 __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, in unix_dgram_peer_wake_relay() 535 u = unix_sk(sk); in unix_dgram_peer_wake_connect() 536 u_other = unix_sk(other); in unix_dgram_peer_wake_connect() 556 u = unix_sk(sk); in unix_dgram_peer_wake_disconnect() 557 u_other = unix_sk(other); in unix_dgram_peer_wake_disconnect() [all …]
|
H A D | unix_bpf.c | 19 struct unix_sock *u = unix_sk(sk); in unix_msg_wait_data() 53 struct unix_sock *u = unix_sk(sk); in unix_bpf_recvmsg()
|
H A D | garbage.c | 98 return unix_sk(sk); in unix_get_socket() 110 return unix_sk(edge->successor->listener)->vertex; in unix_edge_successor() 264 unix_update_graph(unix_sk(receiver->listener)->vertex); in unix_update_edges()
|
H A D | diag.c | 17 struct unix_address *addr = smp_load_acquire(&unix_sk(sk)->addr); in sk_diag_dump_name() 29 struct dentry *dentry = unix_sk(sk)->path.dentry; in sk_diag_dump_vfs()
|
/linux/security/landlock/ |
H A D | task.c | 187 lockdep_assert_held(&unix_sk(other)->lock); in sock_is_scoped() 195 struct unix_address *addr = unix_sk(sock)->addr; in is_abstract_socket()
|
/linux/security/ |
H A D | lsm_audit.c | 344 u = unix_sk(sk); in dump_common_audit_data()
|