aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-02-24 08:00:19 +0100
committerToni Uhlig <matzeton@googlemail.com>2024-05-08 09:10:45 +0200
commit8c89a8e8e4c850ec631c7f35d9323eae5d94416e (patch)
treed80235c7f75c15a0da3b8885fd881485c7181b98 /net
parenta20ff2643ee25a42d4abdd3fcd8a8089163b4872 (diff)
sslh: chroot support
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'net')
-rw-r--r--net/sslh/files/sslh.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sslh/files/sslh.init b/net/sslh/files/sslh.init
index 8d7d1f185..bf5136d3a 100644
--- a/net/sslh/files/sslh.init
+++ b/net/sslh/files/sslh.init
@@ -51,10 +51,13 @@ start_instance() {
config_get_bool val "${section}" transparent 0
[ "${val}" -ne 0 ] && append args "--transparent"
+ mkdir -p "/var/tmp/sslh"
+
# Defaults were removed for --user and --pidfile options
# in sslh 1.11; Define them here instead.
append args "--user nobody"
append args "--pidfile /var/run/sslh.pid"
+ append args "-C /var/tmp/sslh"
# XXX: allow more that one instance to run simultaneously
SERVICE_MATCH_NAME=1 SERVICE_NAME="sslh-dummy-$$" \