Bind mounts with fedora 9

Paul Howarth paul at city-fan.org
Wed Jun 11 06:37:33 UTC 2008


On Tue, 10 Jun 2008 21:45:29 -0400
"Sergio Pascual" <sergio.pasra at gmail.com> wrote:

> Hello
> 
> 2008/6/4 Paul Howarth <paul at city-fan.org>:
> > Or:
> > # umount /var/lib/mysql
> > # chcon -t mnt_t /var/lib/mysql
> > # service netfs start
> >
> 
> This can't be, because /var/lib/mysql has to be mysqld_db_t in order
> to work

Yes it can. The mount point should be mnt_t so that it can have
something mounted on it, and then the filesystem that is mounted there
has a context type of mysqld_db_t at its top level so everything works
as normal. That is why I suggested unmounting the filesystem before
fixing the label, and then re-mounting it (as "service netfs start"
would do, emulating the boot process).

Paul.




More information about the devel mailing list