NFS export of directory in jail

Aaron Weeden amweeden.earlham at gmail.com
Mon Jun 6 20:40:54 UTC 2011


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?

Thanks,
Aaron


More information about the freebsd-jail mailing list