From 239c4a86158429e47289113babc6538402026b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 12 Jun 2019 12:44:12 +0300 Subject: [PATCH] MXS-2549: Install prelink config file The prelink configuration file should prevent maxctrl from being corrupted by it. --- CMakeLists.txt | 5 ++++- etc/prelink.conf.d/maxscale.conf | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 etc/prelink.conf.d/maxscale.conf diff --git a/CMakeLists.txt b/CMakeLists.txt index a4288ece3..70d30ba05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,9 +239,12 @@ install_file(${CMAKE_SOURCE_DIR}/etc/logrotate.d/maxscale_logrotate core) install_header(${CMAKE_SOURCE_DIR}/COPYRIGHT devel) install_header(${CMAKE_SOURCE_DIR}/LICENSE.TXT devel) -# Install startup scripts and ldconfig files +# Install startup scripts and other system configuration files if(WITH_SCRIPTS) include(cmake/init_scripts.cmake) + + # Prevents prelink from corrupting maxctrl + install_custom_file(etc/prelink.conf.d/maxscale.conf /etc/prelink.conf.d/ core) endif() if(PACKAGE) diff --git a/etc/prelink.conf.d/maxscale.conf b/etc/prelink.conf.d/maxscale.conf new file mode 100644 index 000000000..ce85118c6 --- /dev/null +++ b/etc/prelink.conf.d/maxscale.conf @@ -0,0 +1 @@ +-b /usr/bin/maxctrl