summaryrefslogtreecommitdiffstats
path: root/core/modules/remote-access
diff options
context:
space:
mode:
authorSimon Rettberg2022-02-22 15:40:01 +0100
committerSimon Rettberg2022-02-22 15:40:01 +0100
commit3c91a2cc1a86a02dea21f83ae736496028bc817b (patch)
treef452d147451020c0309a47c263e9df07e2154f1a /core/modules/remote-access
parent[dnbd3-proxy-mode] Move stag4 local caching to dnbd3-server.service (diff)
downloadmltk-3c91a2cc1a86a02dea21f83ae736496028bc817b.tar.gz
mltk-3c91a2cc1a86a02dea21f83ae736496028bc817b.tar.xz
mltk-3c91a2cc1a86a02dea21f83ae736496028bc817b.zip
[remote-access] Validate vnc_port is in range
Diffstat (limited to 'core/modules/remote-access')
-rwxr-xr-xcore/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver b/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver
index e6e7f568..4449a0fa 100755
--- a/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver
+++ b/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver
@@ -6,6 +6,9 @@
# TODO If we support multiple parallel sessions in the future, we need dedicated
# ports for each session for both, the VNC and the RPC port.
vnc_port="${SLX_REMOTE_VNC_PORT:-5900}"
+ if ! [ "$vnc_port" -gt 0 ] || ! [ "$vnc_port" -lt 65535 ]; then
+ vnc_port=5900
+ fi
srchost="$SLX_REMOTE_HOST_ACCESS"
if [ -n "$srchost" ]; then
# IPTABLES