summaryrefslogtreecommitdiff
path: root/debian/patches/0001-charon-systemd-Inherit-all-settings-from-the-charon-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-charon-systemd-Inherit-all-settings-from-the-charon-.patch')
-rw-r--r--debian/patches/0001-charon-systemd-Inherit-all-settings-from-the-charon-.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/0001-charon-systemd-Inherit-all-settings-from-the-charon-.patch b/debian/patches/0001-charon-systemd-Inherit-all-settings-from-the-charon-.patch
new file mode 100644
index 000000000..043f4d27a
--- /dev/null
+++ b/debian/patches/0001-charon-systemd-Inherit-all-settings-from-the-charon-.patch
@@ -0,0 +1,32 @@
+From 6727f41be66904c8a38dcabf93a0933e35aaf253 Mon Sep 17 00:00:00 2001
+From: Tobias Brunner <tobias@strongswan.org>
+Date: Mon, 8 Feb 2016 17:19:20 +0100
+Subject: [PATCH] charon-systemd: Inherit all settings from the charon section
+
+Our default config files are very charon specific. So to avoid
+confusion when only charon-systemd is installed we just default to all
+settings defined for charon. Since charon-systemd probably won't be used
+together with charon this should not cause conflicts (settings may still
+be overridden via the charon-systemd section).
+
+ #1300
+---
+ src/charon-systemd/charon-systemd.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/charon-systemd/charon-systemd.c b/src/charon-systemd/charon-systemd.c
+index 4286cde..c6559ce 100644
+--- a/src/charon-systemd/charon-systemd.c
++++ b/src/charon-systemd/charon-systemd.c
+@@ -349,6 +349,8 @@ int main(int argc, char *argv[])
+ sd_notifyf(0, "STATUS=libstrongswan initialization failed");
+ return SS_RC_INITIALIZATION_FAILED;
+ }
++ /* inherit settings from charon */
++ lib->settings->add_fallback(lib->settings, lib->ns, "charon");
+ if (lib->integrity &&
+ !lib->integrity->check_file(lib->integrity, "charon-systemd", argv[0]))
+ {
+--
+2.7.0
+