bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
faec0abfd648c647030027e86de2ce8911df683bTimo Sirainenstatic bool ipc_socket_is_client(const char *name)
faec0abfd648c647030027e86de2ce8911df683bTimo Sirainen if (len > 7 && strcmp(name + len - 7, "-client") == 0)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainenstatic void client_connected(struct master_service_connection *conn)
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen master_service_client_connection_accept(conn);
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen (void)ipc_connection_create(conn->listen_fd, conn->fd);
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen const enum master_service_flags service_flags =
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen master_service = master_service_init("ipc", service_flags,
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen if (master_service_settings_read_simple(master_service,
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen i_fatal("Error reading configuration: %s", error);
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen master_service_init_log(master_service, "ipc: ");
816d20be0cf95fc4eb1a8aa716639e73b8ba525eMartti Rannanjärvi restrict_access_by_env(RESTRICT_ACCESS_FLAG_ALLOW_ROOT, NULL);