diff options
author | EuAndreh <eu@euandre.org> | 2023-03-17 12:58:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-17 12:58:17 -0300 |
commit | 337ab1ff9130efd0ab2f7bad8dc11138272703d1 (patch) | |
tree | 5cb2a312a9737bd92e738beecadbb36cdfecce8b /src/org/euandre | |
parent | queue.scm: s/srfi-1:/s1:/g (diff) | |
download | package-repository-337ab1ff9130efd0ab2f7bad8dc11138272703d1.tar.gz package-repository-337ab1ff9130efd0ab2f7bad8dc11138272703d1.tar.xz |
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.
Diffstat (limited to 'src/org/euandre')
-rw-r--r-- | src/org/euandre/queue.scm | 5 |
1 files changed, 4 insertions, 1 deletions
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 '()))) @@ -795,6 +795,9 @@ keyfile ~a/private.key #:mappings (append (list (file-system-mapping + (source "/etc/protocols") + (target source)) + (file-system-mapping (source config-file) (target source)) (file-system-mapping |