Searched refs:unix_sk (Results 1 - 10 of 10) sorted by relevance
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_setsockopt_unix.c | 16 static inline int cmpname(struct unix_sock *unix_sk) argument 21 if (unix_sk->addr->name->sun_path[i] != sun_path[i]) 31 struct unix_sock *unix_sk = ctx->unix_sk; local 34 if (!unix_sk || !unix_sk->addr) 37 if (unix_sk->addr->name->sun_path[0]) 40 if (cmpname(unix_sk)) 44 err = bpf_setsockopt(unix_sk, SOL_SOCKET, SO_SNDBUF, 50 err = bpf_getsockopt(unix_sk, SOL_SOCKE [all...] |
H A D | test_skc_to_unix_sock.c | 16 struct unix_sock *unix_sk; local 22 unix_sk = (struct unix_sock *)bpf_skc_to_unix_sock(sock->sk); 23 if (!unix_sk) 26 if (unix_sk->addr->name->sun_path[0]) 29 len = unix_sk->addr->len - sizeof(short); 35 path[i] = unix_sk->addr->name->sun_path[i];
|
H A D | bpf_iter_unix.c | 27 struct unix_sock *unix_sk = ctx->unix_sk; local 28 struct sock *sk = (struct sock *)unix_sk; 32 if (!unix_sk) 41 unix_sk, 51 if (unix_sk->addr) { 52 if (unix_sk->addr->name->sun_path[0]) { 53 BPF_SEQ_PRINTF(seq, " %s", unix_sk->addr->name->sun_path); 61 len = unix_sk->addr->len - sizeof(short); 71 unix_sk [all...] |
H A D | bpf_iter.h | 116 struct unix_sock *unix_sk; member in struct:bpf_iter__unix
|
/linux-master/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) 111 spin_lock_nested(&unix_sk(sk)->lock, subclass);
|
/linux-master/net/unix/ |
H A D | af_unix.c | 329 smp_store_release(&unix_sk(sk)->addr, addr); 374 struct unix_sock *u = unix_sk(s); 404 struct dentry *dentry = unix_sk(s)->path.dentry; 449 __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, 466 u = unix_sk(sk); 467 u_other = unix_sk(other); 487 u = unix_sk(sk); 488 u_other = unix_sk(other); 562 wake_up_interruptible_all(&unix_sk(sk)->peer_wait); 578 struct unix_sock *u = unix_sk(s 1442 __releases(&unix_sk(other)->lock) function 3379 unix_prog_seq_show(struct bpf_prog *prog, struct bpf_iter_meta *meta, struct unix_sock *unix_sk, uid_t uid) argument [all...] |
H A D | diag.c | 17 struct unix_address *addr = smp_load_acquire(&unix_sk(sk)->addr); 29 struct dentry *dentry = unix_sk(sk)->path.dentry; 88 peer = unix_sk(req)->peer;
|
H A D | garbage.c | 98 return unix_sk(sk); 110 return unix_sk(edge->successor->listener)->vertex; 264 unix_update_graph(unix_sk(receiver->listener)->vertex); 380 unix_collect_queue(unix_sk(skb->sk), hitlist);
|
H A D | unix_bpf.c | 19 struct unix_sock *u = unix_sk(sk); 53 struct unix_sock *u = unix_sk(sk);
|
/linux-master/security/ |
H A D | lsm_audit.c | 344 u = unix_sk(sk);
|
Completed in 164 milliseconds