From 96980507528393b6d24b79c9d331698832341ab3 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Mon, 22 Jan 2024 21:25:17 +0000 Subject: [PATCH] fix(deprecated/vnc): fix broken turbovncserver-security.conf (#261) --- deprecated/vnc/Dockerfile.ubuntu | 6 +----- deprecated/vnc/turbovncserver-security.conf | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 deprecated/vnc/turbovncserver-security.conf diff --git a/deprecated/vnc/Dockerfile.ubuntu b/deprecated/vnc/Dockerfile.ubuntu index 9e2ac36..65a4612 100644 --- a/deprecated/vnc/Dockerfile.ubuntu +++ b/deprecated/vnc/Dockerfile.ubuntu @@ -67,11 +67,7 @@ RUN ln -s /opt/TurboVNC/bin/* /opt/VirtualGL/bin/* /usr/local/bin/ # This can be ignored as the VNC server manages this lifecycle. RUN vglserver_config -config +s +f +t -RUN echo 'no-remote-connections\n\ -no-httpd\n\ -no-x11-tcp-connections\n\ -no-pam-sessions\n\ -' > /etc/turbovncserver-security.conf +COPY turbovncserver-security.conf /etc/turbovncserver-security.conf ENV VNC_SCRIPTS=$VNC_ROOT_DIR/scripts \ VNC_SETUP_SCRIPTS=$VNC_ROOT_DIR/setup \ diff --git a/deprecated/vnc/turbovncserver-security.conf b/deprecated/vnc/turbovncserver-security.conf new file mode 100644 index 0000000..c2d21bc --- /dev/null +++ b/deprecated/vnc/turbovncserver-security.conf @@ -0,0 +1,4 @@ +no-remote-connections +no-httpd +no-x11-tcp-connections +no-pam-sessions