On 20/04/17 08:04, MrSyrael wrote:
> Just as an update. I managed to locate the problem now. SELinux was in
> enforcing mode. After setting it to permissive (not a clean solution I
> know) I could start the first node with the galera_new_cluster command.
You can easily generate an SELinux policy by doing a command like this[1]:
sudo cat /var/log/audit/audit.log | egrep -i 'mariadb|mysql' |
audit2allow -m site-mariadb > site-mariadb.te
And once you've generated your .te file, you can load it like this[2]:
checkmodule -M -m -o site-mariadb.mod site-mariadb.te
semodule_package -o site-mariadb.pp -m site-mariadb.mod
semodule -i site-mariadb.pp
[1]
http://unix.bris.ac.uk/2013/08/22/how-to-use-selinux/
[2]
https://wiki.centos.org/HowTos/SELinux#head-faa96b3fdd922004cdb988c1989e56191c257c01
Cheers,
Jonathan
--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol