Displaying 2 results from an estimated 2 matches for "mysqldb_db_t".
Did you mean:
mysqld_db_t
2017 Oct 23
0
Unable to apply mysqld_db_t to mysql directory
...to match files under that directory too.
When you moved /var/lib/mysql to /var/lib/mysql.old the labels moved
with the files (this is the default unless you cross filesystems, you
can force labelling as the destination with mv -Z).
The selinux database still has /var/lib/mysql(/.*)? as being type
mysqldb_db_t even if that directory doesn't exist.
When the directory is created and put in place then it will get what
policy says is right for that path.
The point of using equivalence is when you move a default location -
such as /home to /data/home or /var/lib/mysql to /data/mysql
In that situation t...
2017 Oct 23
2
Unable to apply mysqld_db_t to mysql directory
Thanks, I managed to fix /var/lib/mysql
# ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:mysqld_db_t:s0 /var/lib/mysql
To fix it, I tried:
semanage fcontext -d -e /var/lib/mysql
this command returned:
KeyError: /var/lib/mysql
I tried restorecon anyway:
restorecon -Rv /var/lib/mysql
But not better:
ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:var_lib_t:s0