References: <20210415091248.18149-1-maximilian.fillinger@...2507...> From: Antonio Quartulli Message-ID: <64fd6c2d-91e6-a2dd-747d-cfde76275d1e@...2181...> Date: Sun, 18 Apr 2021 17:55:07 +0200 MIME-Version: 1.0 In-Reply-To: <20210415091248.18149-1-maximilian.fillinger@...2507...> Content-Language: en-US Subject: Re: [Openvpn-devel] [PATCH v3 1/2] In init_ssl, open the correct CRL path pre-chroot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit To: Max Fillinger , openvpn-devel@lists.sourceforge.net Hi, On 15/04/2021 11:12, Max Fillinger wrote: > When using the chroot option, the init_ssl function can be called before > entering the chroot or, when OpenVPN receives a SIGHUP, afterwards. This > commit ensures that OpenVPN tries to open the correct path for the CRL > file in either situation. > > This commit does not address key and certificate files. For these, the > --persist-key option should be used. > > Signed-off-by: Max Fillinger Compile tested against my zoo of SSL libraries and got no complaint. GitLab CI did not complain either. I reproduced the bug by having the file reachable by the option parser (chroot+crl_path), but unreachable by the first run of init_ssl() (no chroot included in the path here). I could see that this patch addresses this issue and prevent the first init_ssl() from failing. Subsequent CRL reloads also work as expected. Acked-by: Antonio Quartulli Being this a bugfix for chroot, it should be merged to 2.5 too, if possible. Regards, -- Antonio Quartulli