conf/117577: rc.d/jail doesn't resolve symlinks
nollan at phreaker.net
Sat Oct 27 15:20:05 PDT 2007
>Synopsis: rc.d/jail doesn't resolve symlinks
>Arrival-Date: Sat Oct 27 22:20:04 UTC 2007
>Originator: Johan Granath
>Release: FreeBSD 6.2R | FreeBSD 6.2S
FreeBSD gandalf 6.2-RELEASE FreeBSD 6.2-RELEASE #3: Mon Sep 10 02:06:37 CEST 2007 root at gandalf:/usr/obj/usr/src/sys/GANDALF i386
When setting the jail_jailname_rootdir to a path that contains symlinks, the rc.d/jail script has problems mounting mount_devfs on that path, obviously. To solve the issue you have to put the absolute path to that rcvar.
In my opinion th rc.d/jail script should handle this, so I made a patch.
gandalf# /etc/rc.d/jail start ftpjail
Starting jails:/etc/rc.d/jail: WARNING: /home/ftpjail/dev has symlink as parent - not starting jail ftpjail
More information about the freebsd-bugs