Home
last modified time | relevance | path

Searched refs:unix_sk (Results 1 – 11 of 11) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_skc_to_unix_sock.c16 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()
/linux/security/apparmor/
H A Daf_unix.c242 &unix_sk(sk)->path); in profile_sk_perm()
244 state = match_to_sk(rules->policy, state, request, unix_sk(sk), in profile_sk_perm()
304 &unix_sk(sk)->path); in profile_listen_perm()
307 unix_sk(sk), CMD_LISTEN, &p, &ad->info); in profile_listen_perm()
339 &unix_sk(sk)->path); in profile_accept_perm()
342 unix_sk(sk), &p, &ad->info); in profile_accept_perm()
370 &unix_sk(sk)->path); in profile_opt_perm()
372 state = match_to_cmd(rules->policy, state, request, unix_sk(sk), in profile_opt_perm()
416 unix_sk(sk), in profile_peer_perm()
470 is_unix_fs(sock->sk) ? &unix_sk(sock->sk)->path : NULL); in aa_unix_sock_perm()
[all …]
H A Dnet.c100 const struct unix_sock *u = unix_sk(sk); in audit_unix_sk_addr()
H A Dlsm.c1129 lockdep_is_held(&unix_sk(peer_sk)->lock))); in unix_connect_perm()
1134 lockdep_is_held(&unix_sk(peer_sk)->lock)), in unix_connect_perm()
/linux/include/net/
H A Daf_unix.h57 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk) macro
58 #define unix_peer(sk) (unix_sk(sk)->peer)
60 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock)
61 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock)
/linux/net/unix/
H A Daf_unix.c188 if (a->sk_state == TCP_LISTEN && unix_sk(b)->listener == a) in unix_recvq_lock_cmp_fn()
192 if (b->sk_state == TCP_LISTEN && unix_sk(a)->listener == b) in unix_recvq_lock_cmp_fn()
387 smp_store_release(&unix_sk(sk)->addr, addr); in __unix_set_addr_hash()
432 struct unix_sock *u = unix_sk(s); in __unix_find_socket_byname()
462 struct dentry *dentry = unix_sk(s)->path.dentry; in unix_find_socket_byinode()
507 __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, in unix_dgram_peer_wake_relay()
524 u = unix_sk(sk); in unix_dgram_peer_wake_connect()
525 u_other = unix_sk(other); in unix_dgram_peer_wake_connect()
545 u = unix_sk(sk); in unix_dgram_peer_wake_disconnect()
546 u_other = unix_sk(other); in unix_dgram_peer_wake_disconnect()
[all …]
H A Dunix_bpf.c20 struct unix_sock *u = unix_sk(sk); in unix_msg_wait_data()
54 struct unix_sock *u = unix_sk(sk); in unix_bpf_recvmsg()
H A Dgarbage.c107 return unix_sk(sk); in unix_get_socket()
119 return unix_sk(edge->successor->listener)->vertex; in unix_edge_successor()
276 unix_update_graph(unix_sk(receiver->listener)->vertex); in unix_update_edges()
H A Ddiag.c19 struct unix_address *addr = smp_load_acquire(&unix_sk(sk)->addr); in sk_diag_dump_name()
36 dentry = unix_sk(sk)->path.dentry; in sk_diag_dump_vfs()
/linux/security/apparmor/include/
H A Daf_unix.h22 #define unix_peer(sk) (unix_sk(sk)->peer)
28 #define is_unix_anonymous(U) (!unix_sk(U)->addr)
30 unix_sk(U)->addr->name->sun_path[0])
/linux/security/landlock/
H A Dtask.c245 lockdep_assert_held(&unix_sk(other)->lock); in sock_is_scoped()
253 struct unix_address *addr = unix_sk(sock)->addr; in is_abstract_socket()