Do not listen to ALL network interfaces by default, that is insecure, administrator must enable it himself, udnerstanding what he is doing, otherwise only lo must be listened to. Patch name was incorrect.

This commit is contained in:
Mikhail Novosyolov 2021-02-12 22:52:56 +03:00
parent c081a5251e
commit b5128bde9d
2 changed files with 1 additions and 15 deletions

View file

@ -1,12 +0,0 @@
diff -Naur mariadb-10.1.36-orig/support-files/rpm/server.cnf mariadb-10.1.36/support-files/rpm/server.cnf
--- mariadb-10.1.36-orig/support-files/rpm/server.cnf 2018-09-07 17:09:00.000000000 +0300
+++ mariadb-10.1.36/support-files/rpm/server.cnf 2018-09-27 20:41:49.705182722 +0300
@@ -25,7 +25,7 @@
#
# Allow server to accept connections on all interfaces.
#
-#bind-address=0.0.0.0
+bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1

View file

@ -28,7 +28,6 @@ Source100: mysqld.service
Source101: mysqld-prepare-db-dir
Source102: mysqld-wait-ready
Source1000: %{name}.rpmlintrc
Patch1: mariadb-10.1.36-conf-ip6.patch
BuildRequires: bison
BuildRequires: cmake
BuildRequires: dos2unix
@ -537,8 +536,7 @@ MariaDB command line client.
#----------------------------------------------------------------------------
%prep
%setup -q
%patch1 -p1 -b .ip6
%autosetup -p1
# Workarounds for bugs
sed -i "s@data/test@\${INSTALL_MYSQLTESTDIR}@g" sql/CMakeLists.txt