/linux-6.6.21/tools/testing/selftests/net/af_unix/ |
D | unix_connect.c | 24 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 …]
|
D | scm_pidfd.c | 278 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()
|
D | test_unix_oob.c | 192 strcpy(consumer_addr.sun_path, sock_name); in main()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_setsockopt_unix.c | 9 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()
|
D | bpf_iter_unix.c | 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() 71 unix_sk->addr->name->sun_path[i] ?: in dump_unix()
|
D | test_skc_to_unix_sock.c | 26 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/ |
D | bpf_iter_setsockopt_unix.c | 14 .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()
|
D | skc_to_unix_sock.c | 37 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/ |
D | un.h | 11 char sun_path[UNIX_PATH_MAX]; /* pathname */ member
|
/linux-6.6.21/tools/perf/ |
D | builtin-daemon.c | 600 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/ |
D | file.c | 221 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/ |
D | af_unix.c | 280 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 …]
|
D | diag.c | 23 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/ |
D | sockaddr.c | 39 return scnprintf(bf, size, ", path: %s", sun->sun_path); in af_local__scnprintf()
|
/linux-6.6.21/net/sunrpc/ |
D | rpcb_clnt.c | 221 # 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()
|
D | xprtsock.c | 265 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()
|
D | clnt.c | 575 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/ |
D | daemon_user.c | 44 memcpy(sun->sun_path, name, len); in new_addr()
|
D | vector_user.c | 338 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()
|
D | mconsole_user.c | 200 strcpy(target.sun_path, sock_name); in mconsole_notify()
|
/linux-6.6.21/net/sunrpc/auth_gss/ |
D | gss_rpc_upcall.c | 83 .sun_path = GSSPROXY_SOCK_PATHNAME, in gssp_rpc_create()
|
/linux-6.6.21/security/ |
D | lsm_audit.c | 353 p = &addr->name->sun_path[0]; in dump_common_audit_data()
|
/linux-6.6.21/security/tomoyo/ |
D | network.c | 603 u->addr = ((struct sockaddr_un *) addr)->sun_path; in tomoyo_check_unix_address()
|
/linux-6.6.21/net/9p/ |
D | trans_fd.c | 1061 strcpy(sun_server.sun_path, addr); in p9_fd_create_unix()
|
/linux-6.6.21/net/core/ |
D | filter.c | 11826 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()
|