References: <20161206091059.y3dzup635wvzkw6y@...30...> <1481027162-12165-1-git-send-email-gert@...1296...> From: Arne Schwabe Message-ID: Date: Tue, 6 Dec 2016 13:36:04 +0100 MIME-Version: 1.0 In-Reply-To: <1481027162-12165-1-git-send-email-gert@...1296...> Subject: Re: [Openvpn-devel] [PATCH v3] Refactor setting close-on-exec for socket FDs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Gert Doering , openvpn-devel@lists.sourceforge.net Am 06.12.16 um 13:26 schrieb Gert Doering: > The existing code can leak socket FDs to the "--up" script, which is > not desired. Brought up by Alberto Gonzalez Iniesta, based on debian > bug 367716. > > Since different sockets get create at different times, just moving the > set_cloexec() to link_socket_init_phase1() is not good enough - so move > the call into create_socket_(), so we will catch ALL socket > creations, no matter when or under which conditions they will be > created (SOCKS proxy socket, listening socket, ...). Patch looks good. ACK from me. I also looked at the port-share code path but that part isn't touched by this commit. Arne