• 1

Re: Multiple DB on a file system

No this is actually a simple labelling issue.

I would set this up with labeling /db as var_t and then each directory with its postgres and mysql labels.

# semanage fcontext -a -t var_t '/db(/.*)?'
# semanage fcontext -a -t postgresql_db_t '/db/postgresql(/.*)?'
# semanage fcontext -a -t mysql_db_t '/db/mysql(/.*)?'
# restorecon -R -v /db

  • 1
?

Log in