NFS export of directory in jail
Alexander Leidinger
Alexander at Leidinger.net
Wed Jun 8 08:37:54 UTC 2011
Quoting Aaron Weeden <amweeden.earlham at gmail.com> (from Mon, 6 Jun
2011 16:11:45 -0400):
> I am wondering if a parent can export NFS from a mount point inside of
> a jail running on that host. More specifically, here is the scenario:
>
> The parent, murphy, is FreeBSD 8.2-STABLE, running ezjail version 3.0.
>
> A jail, positron, is rooted on murphy in /usr/local/jails1/positron.
>
> positron has a directory, /clients. murphy will export this directory
> using NFS.
>
> murphy's /etc/exports looks like this:
> /usr/local/jails1/positron/clients -network 192.168 -mask
> 255.255.255.0 -maproot=root
>
> I have been told that funny things can happen if a parent tries to
> access part of a jail without using jexec.
>
> Will something weird happen to murphy or positron in the scenario
> described above?
As long as ezjail does not automount/-unmount a part of this tree
during start/stop: No.
Bye,
Alexander.
--
The ripest fruit falls first.
-- William Shakespeare, "Richard II"
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-jail
mailing list