Explorar o código

openvpn: drop privileges after initialization

Fabian Peter Hammerle %!s(int64=6) %!d(string=hai) anos
pai
achega
312cc8350b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -5,4 +5,5 @@ RUN apk add --no-cache openvpn
 VOLUME /hackthebox
 WORKDIR /hackthebox
 
-CMD ["openvpn", "--config", "/hackthebox/vpn-config.ovpn"]
+CMD ["openvpn", "--config", "/hackthebox/vpn-config.ovpn", \
+     "--user", "openvpn", "--group", "openvpn"]