Home
last modified time | relevance | path

Searched refs:sun_path (Results 1 – 25 of 25) sorted by relevance

/linux-6.6.21/tools/testing/selftests/net/af_unix/
Dunix_connect.c24 char sun_path[8]; in FIXTURE_VARIANT() local
33 .sun_path = "test", in FIXTURE_VARIANT_ADD()
42 .sun_path = "\0test", in FIXTURE_VARIANT_ADD()
51 .sun_path = "test", in FIXTURE_VARIANT_ADD()
60 .sun_path = "\0test", in FIXTURE_VARIANT_ADD()
69 .sun_path = "test", in FIXTURE_VARIANT_ADD()
78 .sun_path = "\0test", in FIXTURE_VARIANT_ADD()
87 .sun_path = "test", in FIXTURE_VARIANT_ADD()
96 .sun_path = "\0test", in FIXTURE_VARIANT_ADD()
112 if (variant->sun_path[0]) in FIXTURE_TEARDOWN()
[all …]
Dscm_pidfd.c278 char *sun_path_buf = (char *)&addr->listen_addr.sun_path; in fill_sockaddr()
281 addr->addrlen = offsetof(struct sockaddr_un, sun_path); in fill_sockaddr()
Dtest_unix_oob.c192 strcpy(consumer_addr.sun_path, sock_name); in main()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_iter_setsockopt_unix.c9 char sun_path[AUTOBIND_LEN]; variable
21 if (unix_sk->addr->name->sun_path[i] != sun_path[i]) in cmpname()
37 if (unix_sk->addr->name->sun_path[0]) in change_sndbuf()
Dbpf_iter_unix.c52 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()
71 unix_sk->addr->name->sun_path[i] ?: in dump_unix()
Dtest_skc_to_unix_sock.c26 if (unix_sk->addr->name->sun_path[0]) in BPF_PROG()
35 path[i] = unix_sk->addr->name->sun_path[i]; in BPF_PROG()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_iter_setsockopt_unix.c14 .sun_path = "", in create_unix_socket()
23 len = offsetof(struct sockaddr_un, sun_path); in create_unix_socket()
33 memcpy(&skel->bss->sun_path, &addr.sun_path, in create_unix_socket()
34 len - offsetof(struct sockaddr_un, sun_path)); in create_unix_socket()
Dskc_to_unix_sock.c37 strncpy(sockaddr.sun_path, sock_path, strlen(sock_path)); in test_skc_to_unix_sock()
38 sockaddr.sun_path[0] = '\0'; in test_skc_to_unix_sock()
/linux-6.6.21/include/uapi/linux/
Dun.h11 char sun_path[UNIX_PATH_MAX]; /* pathname */ member
/linux-6.6.21/tools/perf/
Dbuiltin-daemon.c600 if (strlen(path) + 1 >= sizeof(addr.sun_path)) { in setup_server_socket()
609 strlcpy(addr.sun_path, path, sizeof(addr.sun_path) - 1); in setup_server_socket()
872 if (strlen(path) + 1 >= sizeof(addr.sun_path)) { in setup_client_socket()
880 strlcpy(addr.sun_path, path, sizeof(addr.sun_path) - 1); in setup_client_socket()
/linux-6.6.21/arch/um/os-Linux/
Dfile.c221 snprintf(sock.sun_path, sizeof(sock.sun_path), "%s", name); in os_connect_socket()
563 snprintf(addr.sun_path, len, "%s", file); in os_create_unix_socket()
/linux-6.6.21/net/unix/
Daf_unix.c280 if (addr_len <= offsetof(struct sockaddr_un, sun_path) || in unix_validate_addr()
295 BUILD_BUG_ON(offset != offsetof(struct sockaddr_un, sun_path)); in unix_mkname_bsd()
1078 err = kern_path(sunaddr->sun_path, LOOKUP_FOLLOW, &path); in unix_find_bsd()
1138 if (sunaddr->sun_path[0]) in unix_find_other()
1164 offsetof(struct sockaddr_un, sun_path) + 16, GFP_KERNEL); in unix_autobind()
1168 addr->len = offsetof(struct sockaddr_un, sun_path) + 6; in unix_autobind()
1176 sprintf(addr->name->sun_path + 1, "%05x", ordernum); in unix_autobind()
1230 dentry = kern_path_create(AT_FDCWD, addr->name->sun_path, &parent, 0); in unix_bind_bsd()
1324 if (addr_len == offsetof(struct sockaddr_un, sun_path) && in unix_bind()
1332 if (sunaddr->sun_path[0]) in unix_bind()
[all …]
Ddiag.c23 addr->len - offsetof(struct sockaddr_un, sun_path), in sk_diag_dump_name()
24 addr->name->sun_path); in sk_diag_dump_name()
/linux-6.6.21/tools/perf/trace/beauty/
Dsockaddr.c39 return scnprintf(bf, size, ", path: %s", sun->sun_path); in af_local__scnprintf()
/linux-6.6.21/net/sunrpc/
Drpcb_clnt.c221 # define SUN_LEN(ptr) (offsetof(struct sockaddr_un, sun_path) \
222 + 1 + strlen((ptr)->sun_path + 1))
278 .sun_path = RPCBIND_SOCK_ABSTRACT_NAME, in rpcb_create_local_abstract()
288 .sun_path = RPCBIND_SOCK_PATHNAME, in rpcb_create_local_unix()
Dxprtsock.c265 if (sun->sun_path[0]) { in xs_format_common_peer_addresses()
266 strscpy(buf, sun->sun_path, sizeof(buf)); in xs_format_common_peer_addresses()
269 strscpy(buf+1, sun->sun_path+1, sizeof(buf)-1); in xs_format_common_peer_addresses()
3221 if (sun->sun_path[0] != '/' && sun->sun_path[0] != '\0') { in xs_setup_local()
3223 sun->sun_path); in xs_setup_local()
Dclnt.c575 if (sun->sun_path[0]) in rpc_create()
577 sun->sun_path); in rpc_create()
580 sun->sun_path+1); in rpc_create()
/linux-6.6.21/arch/um/drivers/
Ddaemon_user.c44 memcpy(sun->sun_path, name, len); in new_addr()
Dvector_user.c338 memcpy(local_addr->sun_path, src, strlen(src) + 1); in user_init_unix_fds()
343 memcpy(remote_addr->sun_path, dst, strlen(dst) + 1); in user_init_unix_fds()
367 printk(UM_KERN_ERR "bess open:cannot connect to %s %i", remote_addr->sun_path, -errno); in user_init_unix_fds()
Dmconsole_user.c200 strcpy(target.sun_path, sock_name); in mconsole_notify()
/linux-6.6.21/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c83 .sun_path = GSSPROXY_SOCK_PATHNAME, in gssp_rpc_create()
/linux-6.6.21/security/
Dlsm_audit.c353 p = &addr->name->sun_path[0]; in dump_common_audit_data()
/linux-6.6.21/security/tomoyo/
Dnetwork.c603 u->addr = ((struct sockaddr_un *) addr)->sun_path; in tomoyo_check_unix_address()
/linux-6.6.21/net/9p/
Dtrans_fd.c1061 strcpy(sun_server.sun_path, addr); in p9_fd_create_unix()
/linux-6.6.21/net/core/
Dfilter.c11826 const u8 *sun_path, u32 sun_path__sz) in bpf_sock_addr_set_sun_path() argument
11840 memcpy(un->sun_path, sun_path, sun_path__sz); in bpf_sock_addr_set_sun_path()
11841 sa_kern->uaddrlen = offsetof(struct sockaddr_un, sun_path) + sun_path__sz; in bpf_sock_addr_set_sun_path()