From 8c89a8e8e4c850ec631c7f35d9323eae5d94416e Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 24 Feb 2018 08:00:19 +0100 Subject: sslh: chroot support Signed-off-by: Toni Uhlig --- net/sslh/files/sslh.init | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') 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-$$" \ -- cgit v1.2.3