]> git.ipfire.org Git - thirdparty/openvpn.git/commit
systemd: Use systemd functions to consider systemd availability
authorDavid Sommerseth <davids@redhat.com>
Fri, 3 Oct 2014 17:16:07 +0000 (19:16 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 7 Oct 2014 12:26:00 +0000 (14:26 +0200)
commitf33ee6bcb12fdc3869b17b7c528a209f16581e2e
treee958140b2ceb7099b16e2106eb65f71a955aeacb
parent51390f4de4f02edf377d55a7ef108798d2d8dc88
systemd: Use systemd functions to consider systemd availability

This is another systemd implementation clean-up.  It was found that
SELinux will block OpenVPN from checking /sys/fs/cgroups.  As OpenVPN
only checked /sys/fs/cgroups and /sys/fs/cgroups/systemd to see if
systemd was available or not, it was considered better to query
systemd directly to see whether or not to query for usernames and
passwords via systemd.

This patch has been compile tested on Fedora 19 and Fedora 21 alpha and
function tested on Fedora 19.

  v2 - Use PKG_CHECK_MODULES() + check for libsystemd before
       libystemd-daemon.  systemd >= 209 use a unified library

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1412356567-27125-1-git-send-email-openvpn.list@topphemmelig.net>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9072
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac
src/openvpn/Makefile.am
src/openvpn/console.c