Searched refs:unix_sk (Results 1 - 10 of 10) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_setsockopt_unix.c16 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 Dtest_skc_to_unix_sock.c16 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 Dbpf_iter_unix.c27 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 Dbpf_iter.h116 struct unix_sock *unix_sk; member in struct:bpf_iter__unix
/linux-master/include/net/
H A Daf_unix.h79 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk) macro
80 #define unix_peer(sk) (unix_sk(sk)->peer)
82 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock)
83 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock)
96 spin_lock_nested(&unix_sk(sk)->lock, subclass);
/linux-master/net/unix/
H A Daf_unix.c329 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
3410 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 Ddiag.c17 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 Dunix_bpf.c19 struct unix_sock *u = unix_sk(sk);
53 struct unix_sock *u = unix_sk(sk);
H A Dgarbage.c98 return unix_sk(sk);
212 u = unix_sk(skb->sk);
/linux-master/security/
H A Dlsm_audit.c344 u = unix_sk(sk);

Completed in 359 milliseconds