Hello community,
here is the log from the commit of package mysql-community-server for
openSUSE:Factory checked in at 2017-05-20 10:14:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mysql-community-server (Old)
and /work/SRC/openSUSE:Factory/.mysql-community-server.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mysql-community-server"
Sat May 20 10:14:41 2017 rev:63 rq:496838 version:5.6.36
Changes:
--------
---
/work/SRC/openSUSE:Factory/mysql-community-server/mysql-community-server.changes
2017-04-28 09:13:41.558788445 +0200
+++
/work/SRC/openSUSE:Factory/.mysql-community-server.new/mysql-community-server.changes
2017-05-20 10:14:43.450889403 +0200
@@ -1,0 +2,9 @@
+Thu May 18 13:39:17 UTC 2017 - [email protected]
+
+- fix permissions for /var/run/mysql that were wrongly set to
+ 700 instead of 755 due to added umask. This prevented non-root
+ from connecting to the database [bsc#1038740]
+- switch from '/var/run' to '/run' as /var/run is just a symlink
+ to /run
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ README.SUSE ++++++
--- /var/tmp/diff_new_pack.OXBjLn/_old 2017-05-20 10:15:21.029579927 +0200
+++ /var/tmp/diff_new_pack.OXBjLn/_new 2017-05-20 10:15:21.033579362 +0200
@@ -35,7 +35,7 @@
File locations changes:
- MySQL socket file and pid file were moved from /var/lib/mysql to more
- reasonable location ( /var/run/mysql ) by default.
+ reasonable location ( /run/mysql ) by default.
- MySQL log files are in /var/log/mysql.
3) BerkeleyDB:
++++++ configuration-tweaks.tar.xz ++++++
++++++ my.ini ++++++
--- /var/tmp/diff_new_pack.OXBjLn/_old 2017-05-20 10:15:21.181558454 +0200
+++ /var/tmp/diff_new_pack.OXBjLn/_new 2017-05-20 10:15:21.185557889 +0200
@@ -9,7 +9,7 @@
# of the '~/.my.cnf' configuration file with an access mode set to 400 or 600.
# password = your_password
# port = 3306
-# socket = /var/run/mysql/mysql.sock
+# socket = /run/mysql/mysql.sock
[mysqld]
@@ -41,7 +41,7 @@
# These are commonly set, remove the # and set as required.
# port = 3306
-# socket = /var/run/mysql/mysql.sock
+# socket = /run/mysql/mysql.sock
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
++++++ mysql-patches.tar.xz ++++++
++++++ mysql-systemd-helper ++++++
--- /var/tmp/diff_new_pack.OXBjLn/_old 2017-05-20 10:15:21.281544328 +0200
+++ /var/tmp/diff_new_pack.OXBjLn/_new 2017-05-20 10:15:21.281544328 +0200
@@ -12,10 +12,10 @@
mysql_daemon_group=mysql
if [[ -z "$INSTANCE" ]]; then
datadir=/var/lib/mysql
- socket="/var/run/mysql/mysql.sock"
+ socket="/run/mysql/mysql.sock"
else
datadir="/var/lib/mysql-$INSTANCE"
- socket="/var/run/mysql/mysql.${INSTANCE}.sock"
+ socket="/run/mysql/mysql.${INSTANCE}.sock"
fi
# Read options - important for multi setup
@@ -75,7 +75,7 @@
echo "Trying to run upgrade of MySQL databases..."
# Check whether upgrade process is not already running
- protected="$(cat "/var/run/mysql/protecteddir.$INSTANCE" 2>
/dev/null)"
+ protected="$(cat "/run/mysql/protecteddir.$INSTANCE" 2>
/dev/null)"
if [[ -n "$protected" && -d "$protected" ]]; then
pid="$(cat "$protected/mysqld.pid" 2> /dev/null)"
if [[ "$pid" && -d "/proc/$pid" ]] &&
@@ -84,10 +84,10 @@
else
echo "Stale files from previous upgrade
detected, cleaned them up"
rm -rf "$protected"
- rm -f "/var/run/mysql/protecteddir.$INSTANCE"
+ rm -f "/run/mysql/protecteddir.$INSTANCE"
fi
fi
- protected="$(mktemp -d -p /var/tmp mysql-protected.XXXXXX | tee
"/var/run/mysql/protecteddir.$INSTANCE")"
+ protected="$(mktemp -d -p /var/tmp mysql-protected.XXXXXX | tee
"/run/mysql/protecteddir.$INSTANCE")"
[ -n "$protected" ] || die "Can't create a tmp dir '$protected'"
# Create a secure tmp dir
@@ -134,7 +134,7 @@
# Cleanup
echo "Final cleanup"
if [[ -z "$up_ok" ]]; then
- rm -rf "$protected"
"/var/run/mysql/protecteddir.$INSTANCE"
+ rm -rf "$protected" "/run/mysql/protecteddir.$INSTANCE"
else
die "Something failed during upgrade, please check logs"
fi
@@ -172,8 +172,10 @@
INSTANCE="$2"
read_config
-mkdir -p /var/run/mysql
-chown --no-dereference "$mysql_daemon_user:$mysql_daemon_group" /var/run/mysql
+mkdir -p /run/mysql
+# fix permissions for /run/mysql (bsc#1038740)
+chmod 755 /run/mysql
+chown --no-dereference "$mysql_daemon_user:$mysql_daemon_group" /run/mysql
case "$1" in
install)
mysql_install ;;