Skip to main content

/var/lib/mysql mounted in cagefs

Comments

4 comments

  • Anoop P Alias
    Ideally ony the mysql socket being available in the jail should be enough to access mysql. As you said not sure how CageFS sets this up ;so I cant comment on the requirement of the dir in the skeleton
    0
  • cPanelMichael
    . Are the database files less protected being linked within the cage, even though the directory has permissions such that they cannot be read, than they would be if they were not included?

    Hello @ThinIce, You'll likely receive better feedback on this question directly from CloudLinux (@Bazinga). You can post directly to their forums at: CloudLinux Forums Thank you.
    0
  • ThinIce
    Thanks Michael, that's true. Perhaps the item from the question germane directly to cPanel is whether the MySQL socket can be changed to a different location in my.cnf for the MySQL server without this causing a problem to cPanel or cPanel upgrades of MySQL. I guess the symlink in tmp would also need modifying off the top of my head...
    0
  • cPanelMichael
    Thanks Michael, that's true. Perhaps the item from the question germane directly to cPanel is whether the MySQL socket can be changed to a different location in my.cnf for the MySQL server without this causing a problem to cPanel or cPanel upgrades of MySQL. I guess the symlink in tmp would also need modifying off the top of my head...

    Hello, You should be able to change the socket location per the instructions on MySQL's documentation: MySQL :: MySQL 5.7 Reference Manual :: B.5.3.6 How to Protect or Change the MySQL Unix Socket File Thank you.
    0

Please sign in to leave a comment.