Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.5.9
-
CentOS Linux release 8.3.2011
-
Related to install and upgrade
-
On Fedora, RHEL, and derivatives, depend on the mysql-selinux-1.0.14 package that provides the correct selinux rules for the /usr/sbin/mariadbd that is installed.
-
Q3/2025 Maintenance
Description
Tried couple of locations for the server's `socket` parameter
These two end up with correct label mysqld_var_run_t
/var/run/mysql/imthesocket.sock
/var/run/mysqld/imalsothesocket.sock
And these two have incorrect labels
/var/run/mariadb/itriedtobeasocket.sock is labeled var_run_t
/var/lib/mysql/mysql.sock is labeled as mysqld_db_t
Both of which can be fixed by running restorecon on them which flips them back to mysqld_var_run_t
Also might be related to older issue MDEV-10405 and 10.3.27 wasn't affected by this as it was the starting point of the upgrade to 10.5.8. Clean install is also affected.
Attachments
Issue Links
- is part of
-
MDEV-37680 Fedora MariaDB depends on mysql-selinux
-
- Closed
-
- relates to
-
MDEV-30520 SELinux incorrectly labeled mariadbd
-
- Closed
-
-
MCOL-5825 selinux rules needed to enable columnstore
-
- Closed
-
-
MDEV-10405 mysql.sock gets created with different SELinux context
-
- Closed
-
- links to