conf/117577: rc.d/jail doesn't resolve symlinks

Johan Granath nollan at
Sat Oct 27 15:20:05 PDT 2007

>Number:         117577
>Category:       conf
>Synopsis:       rc.d/jail doesn't resolve symlinks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>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
Configuring jails:.
Starting jails:/etc/rc.d/jail: WARNING: /home/ftpjail/dev has symlink as parent - not starting jail ftpjail

More information about the freebsd-bugs mailing list