Mounting NFS From Within a Jail

Tim Gustafson tjg at soe.ucsc.edu
Fri May 28 22:25:22 UTC 2010


Hi,

I previously sent this message to the freebsd-questions list, but I think perhaps I should have posted it to the freebsd-jail list instead.

Is it possible to mount an NFS file system from within a jail?

On my jail host, I have:

security.jail.mount_allowed: 1

>From the jail host, I can mount just fine:

root at jailhost: mount
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
nfsserver:/usr/ports on /usr/ports (nfs)
nfsserver:/usr/src on /usr/src (nfs)
nfsserver:/usr/obj on /usr/obj (nfs)

However, from within a jail, I get:

root at jailguest: mount nfsserver:/usr/ports /usr/ports
mount_nfs: /usr/ports, : Operation not permitted

Am I missing something else here?

Tim Gustafson
Baskin School of Engineering
UC Santa Cruz
tjg at soe.ucsc.edu
831-459-5354



More information about the freebsd-jail mailing list