conf/117577: rc.d/jail doesn't resolve symlinks
Johan Granath
nollan at phreaker.net
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
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Oct 27 22:20:04 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Johan Granath
>Release: FreeBSD 6.2R | FreeBSD 6.2S
>Organization:
>Environment:
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
>Description:
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
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list