]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Call daemon() before initializing crypto library
authorSteffan Karger <steffan@karger.me>
Mon, 27 Apr 2015 14:28:57 +0000 (16:28 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 26 May 2015 13:57:35 +0000 (15:57 +0200)
commitda9b292733e929a2900dc32d37f0424c3d588366
treecbed11e68fa9726566cfd323153d7ff690ad3781
parent6478c1f359e6b0ea2046d9e2801830753e53c06a
Call daemon() before initializing crypto library

But keep the chdir to / at the place where deamon() was before, to preserve
the current behaviour wrt relative paths in the config.

This should fix the issue reported in trac #480, without changing the
behaviour visible to the end user.

Note that by moving the daemon() call to an earlier stage of the init
process, we no longer have to call platform_mlockall() again, or do a
pkcs11_forkFixup().

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1430144937-4149-1-git-send-email-steffan@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9609
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c
src/openvpn/init.h
src/openvpn/openvpn.c
src/openvpn/pkcs11.c
src/openvpn/pkcs11.h