From 4adcc2dbd3784026af3b3fa87362d3d4383dde96 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Wed, 18 Jul 2018 07:58:48 +0200 Subject: [PATCH] Fix rule for selinux context for the log file --- community-mysql.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community-mysql.spec b/community-mysql.spec index dd6a655..3397f23 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -709,7 +709,7 @@ if [ ! -e "%{logfile}" -a ! -h "%{logfile}" ] ; then install /dev/null -m0640 -omysql -gmysql "%{logfile}" fi # 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}