heXoughts - arco's braindumps & musings

In my quest for an answer to nature's existence, I wish to be an inter-galactic hitchhiker..

#noteToSelf - Fix MariaDB-selinux Related Errors (Fails to Restart After Update)

| Comments

https://jira.mariadb.org/browse/MDEV-11789

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
yum -y install MariaDB-devel  gcc gcc-c++ autoconf automake make libtool   zlib zlib-devel openssl-devel
yum install -y MySQL-server
 
# tried this, didn't work (where /home/native is the directory with mysql database is stored; configurable in my.cnf)
semanage fcontext -a -t mysqld_db_t "/home/native(/.*)?"
restorecon -Rv /home/native/
yum install selinux-policy
audit2allow -a
yum install yum-utils
yum-complete-transaction
 
# then tried this
yum provides sealert
yum install setroubleshoot-server
sealert -a /var/log/audit/audit.log
# this produces alerts from audit.log and provides hints as to what should be executed next..
 
# so i followed directions..
ausearch -c 'mysqld_safe_hel' --raw | audit2allow -M my-mysqldsafehel
semodule -i my-mysqldsafehel.pp

Comments