annotate src/dns/dns-client-settings.c @ 22656:1789bf2a1e01

director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0 The reset command would just hang in that case. doveadm would never have sent this, so this is just an extra sanity check.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sun, 05 Nov 2017 23:51:56 +0200
parents 2e2563132d5f
children cb108f786fb4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21390
2e2563132d5f Updated copyright notices to include the year 2017.
Stephan Bosch <stephan.bosch@dovecot.fi>
parents: 19552
diff changeset
1 /* Copyright (c) 2010-2017 Dovecot authors, see the included COPYING file */
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3 #include "lib.h"
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
4 #include "buffer.h"
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
5 #include "settings-parser.h"
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
6 #include "service-settings.h"
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8 #include <stddef.h>
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10 /* <settings checks> */
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 static struct file_listener_settings dns_client_unix_listeners_array[] = {
14158
fb972ad3213d dns: Removed login/dns-client socket, since it's no longer necessary.
Timo Sirainen <tss@iki.fi>
parents: 14133
diff changeset
12 { "dns-client", 0666, "", "" }
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13 };
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
14 static struct file_listener_settings *dns_client_unix_listeners[] = {
14158
fb972ad3213d dns: Removed login/dns-client socket, since it's no longer necessary.
Timo Sirainen <tss@iki.fi>
parents: 14133
diff changeset
15 &dns_client_unix_listeners_array[0]
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
16 };
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
17 static buffer_t dns_client_unix_listeners_buf = {
17397
f373df52082a treewide - mass cleanup of 0 used to end a settings list
Phil Carmody <phil@dovecot.fi>
parents: 17130
diff changeset
18 dns_client_unix_listeners, sizeof(dns_client_unix_listeners), { NULL, }
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
19 };
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
20 /* </settings checks> */
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
21
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
22 struct service_settings dns_client_service_settings = {
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
23 .name = "dns_client",
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
24 .protocol = "",
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
25 .type = "",
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
26 .executable = "dns-client",
10705
bf84cb98bd04 Added default_internal_user and default_login_user settings, which services use as default users.
Timo Sirainen <tss@iki.fi>
parents: 10615
diff changeset
27 .user = "$default_internal_user",
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
28 .group = "",
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
29 .privileged_group = "",
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
30 .extra_groups = "",
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
31 .chroot = "",
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
32
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
33 .drop_priv_before_exec = FALSE,
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
34
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
35 .process_min_avail = 0,
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
36 .process_limit = 0,
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
37 .client_limit = 1,
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
38 .service_count = 0,
11631
d41694c931d0 Added support for per-service idle kill timeout.
Timo Sirainen <tss@iki.fi>
parents: 10705
diff changeset
39 .idle_kill = 0,
12432
8793036f6de8 Services' default vsz_limit wasn't actually using default_vsz_limit but rather 4 GB.
Timo Sirainen <tss@iki.fi>
parents: 11631
diff changeset
40 .vsz_limit = (uoff_t)-1,
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
41
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
42 .unix_listeners = { { &dns_client_unix_listeners_buf,
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
43 sizeof(dns_client_unix_listeners[0]) } },
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
44 .fifo_listeners = ARRAY_INIT,
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
45 .inet_listeners = ARRAY_INIT
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
46 };