diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-01-10 18:31:03 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-01-11 11:55:11 +0100 |
commit | c1a23cd4e5f96c51064f9569bfa4f87d76d53fb6 (patch) | |
tree | 4bbe0c8822800609c33b410030bbef6db15646d3 /support-files/rpm | |
parent | 6ad3dd6054b34afea1f1f13dfd925dc7e73f3b16 (diff) | |
download | mariadb-git-c1a23cd4e5f96c51064f9569bfa4f87d76d53fb6.tar.gz |
MDEV-11676 Starting service with mysqld_safe_helper fails in SELINUX "enforcing" mode
compile, and install selinux policy for mysqld_safe_helper on centos6.
the policy was created as described in https://mariadb.com/kb/en/mariadb/what-to-do-if-mariadb-doesnt-start/#other-selinux-changes
Diffstat (limited to 'support-files/rpm')
-rw-r--r-- | support-files/rpm/server-postin.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/support-files/rpm/server-postin.sh b/support-files/rpm/server-postin.sh index cd2aec4d84a..377a752824d 100644 --- a/support-files/rpm/server-postin.sh +++ b/support-files/rpm/server-postin.sh @@ -79,7 +79,12 @@ if [ -f /etc/redhat-release ] ; then echo ' make load' echo echo - fi + fi + if grep 'CentOS release 6' /etc/redhat-release >/dev/null 2>&1; then + if [ -x /usr/sbin/semodule ] ; then + /usr/sbin/semodule -i /usr/share/mysql/SELinux/centos6-mariadb.pp + fi + fi fi if [ -x sbin/restorecon ] ; then |