Florin Andrei wrote:
In the particular case of moving /var/lib/mysql to the separate filesystem /db, it's enough to mount /db with the same SELinux context like /var:
mount -o defcontext=system_u:object_r:var_t /db
Actually, in /etc/fstab you have to append a :s0 otherwise it won't mount automatically at boot:
LABEL=/db /db ext3 defcontext=system_u:object_r:var_t:s0 1 2