Date: Wed, 10 May 2006 08:57:16 GMT From: Yamagami Yoshiyuki <yamagami@netsystems.co.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/97079: How to use jail_fstab is wrong in /etc/rc.d/jail Message-ID: <200605100857.k4A8vGN7031457@www.freebsd.org> Resent-Message-ID: <200605100900.k4A90XXs021118@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 97079 >Category: kern >Synopsis: How to use jail_fstab is wrong in /etc/rc.d/jail >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 10 09:00:32 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Yamagami Yoshiyuki >Release: 6.1-RELEASE >Organization: Netsystems,Inc >Environment: FreeBSD sloth.netsystems.co.jp 6.1-RELEASE FreeBSD 6.1-RELEASE #41: Wed May 10 05:28:25 JST 2006 root@sloth.netsystems.co.jp:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The first jail_fstab enters jail_fstab since the second when jail_hoge_example_com_fstab is not set when two jail or more is prepared. >How-To-Repeat: Two jail or more is prepared. >Fix: --- /usr/src/etc/rc.d/jail Sat May 6 03:32:08 2006 +++ /etc/rc.d/jail Wed May 10 17:32:04 2006 @@ -63,7 +63,7 @@ eval jail_mount=\"\${jail_${_j}_mount_enable:-${jail_mount_enable}}\" [ -z "${jail_mount}" ] && jail_mount="NO" # "/etc/fstab.${_j}" will be used for {,u}mount(8) if none is specified. - eval jail_fstab=\"\${jail_${_j}_fstab:-${jail_fstab}}\" + eval jail_fstab=\"\${jail_${_j}_fstab:-${jail_fstab_filename}}\" [ -z "${jail_fstab}" ] && jail_fstab="/etc/fstab.${_j}" eval jail_flags=\"\${jail_${_j}_flags:-${jail_flags}}\" [ -z "${jail_flags}" ] && jail_flags="-l -U root" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605100857.k4A8vGN7031457>