소스 검색

openvpn: drop privileges after initialization

Fabian Peter Hammerle 6 년 전
부모
커밋
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"]