| 1 |
Note: The included SELinux policy files can be used for MariaDB Galera cluster. |
| 2 |
However, since these policies had been tested for a limited set of scenarios, |
| 3 |
it is highly recommended that you run mysqld in "permissive" mode even with |
| 4 |
these policies installed and report any denials on mariadb.org/jira. |
| 5 |
|
| 6 |
|
| 7 |
How to generate and load the policy module of MariaDB Galera cluster ? |
| 8 |
* Generate the SELinux policy module. |
| 9 |
# cd <source>/policy/selinux/ |
| 10 |
# make -f /usr/share/selinux/devel/Makefile mariadb-server.pp |
| 11 |
|
| 12 |
* Load the generated policy module. |
| 13 |
# semodule -i /path/to/mariadb-server.pp |
| 14 |
|
| 15 |
* Lastly, run the following command to allow tcp/4568 and udp/4567. |
| 16 |
# semanage port -a -t mysqld_port_t -p tcp 4568 |
| 17 |
# semanage port -a -t mysqld_port_t -p udp 4567 |
| 18 |
|
| 19 |
How to run mysqld in permissve mode ? |
| 20 |
# semanage permissive -a mysqld_t |