From 337ab1ff9130efd0ab2f7bad8dc11138272703d1 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 17 Mar 2023 12:58:14 -0300 Subject: queue.scm: Add missing mapping to DKIMPorxy.out container and enable it by default By manually enabling `(run-in-container? #t)` in the server and doing an strace(1) of the running processes: $ strace `pgrep -fi dkimproxy.out-real | sed 's|^| -p|' | tr -d '\n'` ...revealed that dkimproxy_out(1) failed when it couldn't find the `/etc/protocols` file in its namespace. After adding that manually via the `(extra-mappings ...)` list, it worked correctly. --- src/org/euandre/queue.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/euandre/queue.scm b/src/org/euandre/queue.scm index e22a0ff..a468413 100644 --- a/src/org/euandre/queue.scm +++ b/src/org/euandre/queue.scm @@ -687,7 +687,7 @@ By default, the daemon runs in a container."))) (selector dkimproxyout-configuration-selector (default "dkimproxyout")) (key-size dkimproxyout-configuration-key-size (default 2048)) (data-directory dkimproxyout-configuration-data-directory (default "/var/lib/dkimproxyout")) - (run-in-container? dkimproxyout-configuration-run-in-container? (default #f)) + (run-in-container? dkimproxyout-configuration-run-in-container? (default #t)) (container-name dkimproxyout-configuration-container-name (default "dkimproxyout")) (container-namespaces dkimproxyout-configuration-container-namespaces (default (s1:fold delq container:%namespaces '(net)))) (extra-mappings dkimproxyout-configuration-extra-mappings (default '()))) @@ -794,6 +794,9 @@ keyfile ~a/private.key #:namespaces container-namespaces #:mappings (append (list + (file-system-mapping + (source "/etc/protocols") + (target source)) (file-system-mapping (source config-file) (target source)) -- cgit v1.2.3