summaryrefslogtreecommitdiffstats
path: root/patches/source/mariadb/doinst.sh
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2022-02-14 00:10:38 +0000
committer Eric Hameleers <alien@slackware.com>2022-02-14 13:29:59 +0100
commit9a5f4fd634196e1d4257a31e89f24291b0398bc5 (patch)
tree5f72d2084eabe69bc9de29236c66dcca240198be /patches/source/mariadb/doinst.sh
parenteb19d645697c4935cc1041de9e9ec2946c0bdb46 (diff)
downloadcurrent-9a5f4fd634196e1d4257a31e89f24291b0398bc5.tar.gz
current-9a5f4fd634196e1d4257a31e89f24291b0398bc5.tar.xz
Mon Feb 14 00:10:38 UTC 202220220214001038_15.0
patches/packages/mariadb-10.5.15-x86_64-1_slack15.0.txz: Upgraded. This update fixes potential denial-of-service vulnerabilities. For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46665 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46664 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46661 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46668 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46663 (* Security fix *)
Diffstat (limited to 'patches/source/mariadb/doinst.sh')
-rw-r--r--patches/source/mariadb/doinst.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/patches/source/mariadb/doinst.sh b/patches/source/mariadb/doinst.sh
new file mode 100644
index 000000000..b106e2fed
--- /dev/null
+++ b/patches/source/mariadb/doinst.sh
@@ -0,0 +1,36 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+# Keep same perms on rc.mysqld.new:
+if [ -e etc/rc.d/rc.mysqld ]; then
+ cp -a etc/rc.d/rc.mysqld etc/rc.d/rc.mysqld.new.incoming
+ cat etc/rc.d/rc.mysqld.new > etc/rc.d/rc.mysqld.new.incoming
+ mv etc/rc.d/rc.mysqld.new.incoming etc/rc.d/rc.mysqld.new
+fi
+
+config etc/rc.d/rc.mysqld.new
+config etc/mysqlaccess.conf.new
+config etc/my.cnf.new
+config etc/my.cnf.d/client.cnf.new
+config etc/my.cnf.d/mysql-clients.cnf.new
+config etc/my.cnf.d/s3.cnf.new
+config etc/my.cnf.d/server.cnf.new
+config etc/my.cnf.d/spider.cnf.new
+config etc/logrotate.d/mysql.new
+
+# This one is only comments, so remove it if it's left behind:
+if [ -r etc/security/user_map.conf.new ]; then
+ config etc/security/user_map.conf.new
+fi
+rm -f etc/security/user_map.conf.new
+