summaryrefslogtreecommitdiff
path: root/scripts/galera_recovery.sh
diff options
context:
space:
mode:
authorsachin <sachin.setiya@mariadb.com>2017-09-11 17:46:56 +0530
committersachin <sachin.setiya@mariadb.com>2017-09-21 12:37:40 +0530
commitbb7a70c9551c1756b1d1736ca4f6a0a965795873 (patch)
tree7432b24e6a2b2e6dc5b9c65158c349d15d54d1d4 /scripts/galera_recovery.sh
parentc9e111202efce8c61184d49062ec2e1d2d129a57 (diff)
downloadmariadb-git-bb7a70c9551c1756b1d1736ca4f6a0a965795873.tar.gz
MDEV-10767 /tmp/wsrep_recovery.${RANDOM} file created in unallowed SELinux context
Problem:- To create file in /tmp dir mysqld require permission initrc_tmp_t. And mysqld does not have his permission. Solution:- Instead of giving mysqld permission of initrc_tmp_t , we redirected log to file in /tmp dir through shell. I also removed a earlier workarround in mysqld_safe.sh , which create tmp log file in datadir.
Diffstat (limited to 'scripts/galera_recovery.sh')
-rw-r--r--scripts/galera_recovery.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/galera_recovery.sh b/scripts/galera_recovery.sh
index d734ceb7ac7..de2e653c497 100644
--- a/scripts/galera_recovery.sh
+++ b/scripts/galera_recovery.sh
@@ -69,7 +69,7 @@ parse_arguments() {
wsrep_recover_position() {
# Redirect server's error log to the log file.
eval /usr/sbin/mysqld $cmdline_args --user=$user --wsrep_recover \
- --log-error="$log_file"
+ --disable-log-error 2> "$log_file"
ret=$?
if [ $ret -ne 0 ]; then
# Something went wrong, let us also print the error log so that it