Fix rule for selinux context for the log file
This commit is contained in:
parent
fa0bed3316
commit
4adcc2dbd3
1 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue