浏览代码

openvpn: drop privileges after initialization

Fabian Peter Hammerle 5 年之前
父节点
当前提交
312cc8350b
共有 1 个文件被更改,包括 2 次插入1 次删除
  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"]