Hello,

I want to chroot mysql. So i chrooted it in /var/mysql (mysqld --chroot),
but web applications could access mysql server only by network, which is
not the most secure and fast way. Chrooting it to /var/www/mysql would not
be secure too.

The problem could be solved creating pseudo device for /var/mysql/tmp --
mysql socket would be there, and mount it two times (/var/mysql/tmp,
/var/www/somewhere). Is it possible?

Also it could be done using mount --bind, but openbsd does not support it,
right?

And also, i have seperate partitions to /var/www and /var/mysql, so i can
not hard link the socket cross over partition.

Thanks.

Reply via email to