Fix rule for selinux context for the log file

This commit is contained in:
Honza Horak 2018-07-18 07:58:48 +02:00 committed by Michal Schorm
parent 40102ee6fa
commit 8a5f2f75c5

View File

@ -709,7 +709,7 @@ if [ ! -e "%{logfile}" -a ! -h "%{logfile}" ] ; then
install /dev/null -m0640 -omysql -gmysql "%{logfile}" install /dev/null -m0640 -omysql -gmysql "%{logfile}"
fi fi
# TODO: remove after selinux-policy is fixed (BZ#1602153) # TODO: remove after selinux-policy is fixed (BZ#1602153)
semanage fcontext -a -t mysqld_log_t %{logfiledir} semanage fcontext -a -t mysqld_log_t '/var/log/mysql(/.*)?'
restorecon -r %{logfiledir} restorecon -r %{logfiledir}