Searched refs:socket_name (Results 1 - 3 of 3) sorted by relevance
/systemd/src/reply-password/ |
H A D | reply-password.c | 32 static int send_on_socket(int fd, const char *socket_name, const void *packet, size_t size) { argument 41 assert(socket_name); 44 strncpy(sa.un.sun_path, socket_name, sizeof(sa.un.sun_path)); 46 if (sendto(fd, packet, size, MSG_NOSIGNAL, &sa.sa, offsetof(struct sockaddr_un, sun_path) + strlen(socket_name)) < 0)
|
/systemd/src/tty-ask-password-agent/ |
H A D | tty-ask-password-agent.c | 241 static int send_passwords(const char *socket_name, char **passwords) { argument 249 assert(socket_name); 270 strncpy(sa.un.sun_path, socket_name, sizeof(sa.un.sun_path)); 273 offsetof(struct sockaddr_un, sun_path) + strlen(socket_name)); 283 _cleanup_free_ char *socket_name = NULL, *message = NULL; local 289 { "Ask", "Socket", config_parse_string, 0, &socket_name }, 309 if (!socket_name) { 344 if (access(socket_name, W_OK) < 0) { 388 r = send_passwords(socket_name, passwords);
|
/systemd/src/shared/ |
H A D | ask-password-api.c | 471 _cleanup_free_ char *socket_name = NULL; local 511 socket_fd = create_socket(&socket_name); 525 socket_name, 683 if (socket_name) 684 (void) unlink(socket_name);
|
Completed in 2591 milliseconds