/kernel/linux/linux-6.6/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 | 116 struct unix_sock *unix_sk; member
|
/kernel/linux/linux-6.6/include/net/ |
H A D | af_unix.h | 71 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk) macro 72 #define unix_peer(sk) (unix_sk(sk)->peer) 74 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock) 75 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock) 85 spin_lock_nested(&unix_sk(sk)->lock, subclass); in unix_state_lock_nested()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | af_unix.h | 69 static inline struct unix_sock *unix_sk(const struct sock *sk) in unix_sk() function 74 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock) 75 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock) 85 spin_lock_nested(&unix_sk(sk)->lock, subclass); in unix_state_lock_nested()
|
/kernel/linux/linux-5.10/net/unix/ |
H A D | af_unix.c | 136 #define UNIX_ABSTRACT(sk) (unix_sk(sk)->addr->hash < UNIX_HASH_SIZE) 180 #define unix_peer(sk) (unix_sk(sk)->peer) 286 struct unix_sock *u = unix_sk(s); in __unix_find_socket_byname() 320 struct dentry *dentry = unix_sk(s)->path.dentry; in unix_find_socket_byinode() 366 __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, in unix_dgram_peer_wake_relay() 383 u = unix_sk(sk); in unix_dgram_peer_wake_connect() 384 u_other = unix_sk(other); in unix_dgram_peer_wake_connect() 404 u = unix_sk(sk); in unix_dgram_peer_wake_disconnect() 405 u_other = unix_sk(other); in unix_dgram_peer_wake_disconnect() 479 wake_up_interruptible_all(&unix_sk(s in unix_dgram_disconnected() 1227 __releases(&unix_sk(other)->lock) unix_sk() function [all...] |
H A D | scm.c | 55 struct unix_sock *u = unix_sk(s); in unix_inflight() 77 struct unix_sock *u = unix_sk(s); in unix_notinflight()
|
H A D | diag.c | 17 struct unix_address *addr = smp_load_acquire(&unix_sk(sk)->addr); in sk_diag_dump_name() 28 struct dentry *dentry = unix_sk(sk)->path.dentry; in sk_diag_dump_vfs() 87 peer = unix_sk(req)->peer; in sk_diag_dump_icons()
|
H A D | garbage.c | 111 struct unix_sock *u = unix_sk(sk); in scan_inflight() 149 u = unix_sk(skb->sk); in scan_children()
|
/kernel/linux/linux-6.6/net/unix/ |
H A D | af_unix.c | 330 smp_store_release(&unix_sk(sk)->addr, addr); in __unix_set_addr_hash() 375 struct unix_sock *u = unix_sk(s); in __unix_find_socket_byname() 405 struct dentry *dentry = unix_sk(s)->path.dentry; in unix_find_socket_byinode() 450 __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, in unix_dgram_peer_wake_relay() 467 u = unix_sk(sk); in unix_dgram_peer_wake_connect() 468 u_other = unix_sk(other); in unix_dgram_peer_wake_connect() 488 u = unix_sk(sk); in unix_dgram_peer_wake_disconnect() 489 u_other = unix_sk(other); in unix_dgram_peer_wake_disconnect() 563 wake_up_interruptible_all(&unix_sk(sk)->peer_wait); in unix_dgram_disconnected() 579 struct unix_sock *u = unix_sk(s in unix_sock_destructor() 1452 __releases(&unix_sk(other)->lock) unix_sk() function 3327 unix_prog_seq_show(struct bpf_prog *prog, struct bpf_iter_meta *meta, struct unix_sock *unix_sk, uid_t uid) unix_prog_seq_show() argument [all...] |
H A D | scm.c | 54 struct unix_sock *u = unix_sk(s); in unix_inflight() 76 struct unix_sock *u = unix_sk(s); in unix_notinflight()
|
H A D | garbage.c | 111 struct unix_sock *u = unix_sk(sk); in scan_inflight() 149 u = unix_sk(skb->sk); in scan_children()
|
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 | 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() 88 peer = unix_sk(req)->peer; in sk_diag_dump_icons()
|
/kernel/linux/linux-5.10/security/ |
H A D | lsm_audit.c | 360 u = unix_sk(sk); in dump_common_audit_data()
|
/kernel/linux/linux-6.6/security/ |
H A D | lsm_audit.c | 344 u = unix_sk(sk); in dump_common_audit_data()
|