Module: check_mk
Branch: master
Commit: a7fd419c0bef49f85bf2effd4b5474f9c3a878d3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a7fd419c0bef49…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Wed Jul 25 07:11:28 2018 +0200
CMK-600: Add Werk 5507
5507 FIX Prevent cmk-update-agent from being prelinked on Linux
Since Check_MK 1.5, the Agent Updater gets packaged via the tool "PyInstaller"
to ensure a better compatibility. Unfortunately, PyInstaller-packaged binaries will break
when tthey get prelinked. You would experience this by getting an error message like
<pre>
Cannot open self /usr/lib/check_mk_agent/plugins/3600/cmk-update-agent or archive
/usr/lib/check_mk_agent/plugins/3600/cmk-update-agent.pkg
</pre>
when cmk-update-agent gets executed after a prelink.
To mitigate this problem, and because there may be some systems that run a prelink-job
frequently on all executables, the Check_MK agent package now blacklists the
cmk-update-agent binary from being prelinked. It does this by writing to the
prelink-config (if it finds one on the system) on installation. The corresponding config
entries will be removed on uninstallation.
Change-Id: Ia0a83b76da4bedafa27e8513812a258ea37ef871
---
.werks/5507 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/.werks/5507 b/.werks/5507
new file mode 100644
index 0000000..18eaa55
--- /dev/null
+++ b/.werks/5507
@@ -0,0 +1,19 @@
+Title: Prevent cmk-update-agent from being prelinked on Linux
+Level: 1
+Component: agents
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1532494783
+
+Since Check_MK 1.5, the Agent Updater gets packaged via the tool "PyInstaller"
to ensure a better compatibility. Unfortunately, PyInstaller-packaged binaries will break
when tthey get prelinked. You would experience this by getting an error message like
+
+<pre>
+Cannot open self /usr/lib/check_mk_agent/plugins/3600/cmk-update-agent or archive
/usr/lib/check_mk_agent/plugins/3600/cmk-update-agent.pkg
+</pre>
+
+when cmk-update-agent gets executed after a prelink.
+
+To mitigate this problem, and because there may be some systems that run a prelink-job
frequently on all executables, the Check_MK agent package now blacklists the
cmk-update-agent binary from being prelinked. It does this by writing to the
prelink-config (if it finds one on the system) on installation. The corresponding config
entries will be removed on uninstallation.