From nobody@FreeBSD.org  Wed May 10 08:57:17 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6982616A403
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 May 2006 08:57:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3905A43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 May 2006 08:57:17 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4A8vGt6031458
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 May 2006 08:57:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4A8vGN7031457;
	Wed, 10 May 2006 08:57:16 GMT
	(envelope-from nobody)
Message-Id: <200605100857.k4A8vGN7031457@www.freebsd.org>
Date: Wed, 10 May 2006 08:57:16 GMT
From: Yamagami Yoshiyuki <yamagami@netsystems.co.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: How to use jail_fstab is wrong in /etc/rc.d/jail
X-Send-Pr-Version: www-2.3

>Number:         97079
>Category:       kern
>Synopsis:       How to use jail_fstab is wrong in /etc/rc.d/jail
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    flz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 10 09:00:32 GMT 2006
>Closed-Date:    Mon Sep 25 23:00:52 GMT 2006
>Last-Modified:  Mon Sep 25 23:00:52 GMT 2006
>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:

From: Matteo Riondato <matteo@freebsd.org>
To: Yamagami Yoshiyuki <yamagami@netsystems.co.jp>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/97079: How to use jail_fstab is wrong in /etc/rc.d/jail
Date: Wed, 10 May 2006 14:45:46 +0200

 Can you please elaborate a bit on this problem and, if possible, send
 us your settings so I can try to reproduce this problem?
 Thank you
 Best Regards
 -- 
 Matteo Riondato
 FreeBSD Committer (http://www.freebsd.org)
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)

From: Maxim Konovalov <maxim@macomnet.ru>
To: Yamagami Yoshiyuki <yamagami@netsystems.co.jp>
Cc: bug-followup@freebsd.org
Subject: kern/97079
Date: Fri, 12 May 2006 13:40:48 +0400 (MSD)

 Hello,
 
 Could you please help Florent to test his patch?  Thanks!
 
 -- 
 Maxim Konovalov
 
 ---------- Forwarded message ----------
 Date: Fri, 12 May 2006 10:21:41 +0100
 From: Florent Thoumie <flz@freebsd.org>
 To: freebsd-current@freebsd.org
 Cc: freebsd-stable@freebsd.org
 Subject: Jail testers needed (rc.d/jail)
 
 Hey lists,
 
 Two or three days before the CVS tree has been tagged for FreeBSD
 6.1-RELEASE, I've committed a broken version of the jail rc.d script.
 
 The symptoms are:
 
 - an ifconfig error message if you don't define a jail_interface and
 have at least one jail configured, this one is harmless.
 - a problem with one of the following variable: jail_exec,
 jail_exec_start, jail_exec_stop, jail_flags and especially jail_fstab;
 if you have at least two jails configured.
 
 I committed yesterday a fix that should supposedly fix both of these
 issues so I'd need all jail users running either FreeBSD 6.1-RELEASE or
 6-STABLE (older than two days) to try the new script [1] and report the
 result, either successful or not. Once I'll get enough successful
 reports, I'll contact the Release Engineering team to make sure the
 patch makes it to the RELENG_6_1 branch.
 
 Sorry for the inconvenience.
 
 Note: Keep me CC'ed as I'm not (yet) subscribed to these lists.
 
 [1] http://cvsweb.freebsd.org/src/etc/rc.d/jail?rev=1.32
 
 -- 
 Florent Thoumie
 flz@FreeBSD.org
 FreeBSD Committer
State-Changed-From-To: open->patched 
State-Changed-By: maxim 
State-Changed-When: Fri May 12 17:58:09 UTC 2006 
State-Changed-Why:  
Should be fixed in HEAD. 


Responsible-Changed-From-To: freebsd-bugs->flz 
Responsible-Changed-By: maxim 
Responsible-Changed-When: Fri May 12 17:58:09 UTC 2006 
Responsible-Changed-Why:  
Over to Florent. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97079 

From: Maxim Konovalov <maxim@macomnet.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/97079 (fwd)
Date: Mon, 15 May 2006 13:00:02 +0400 (MSD)

 ---------- Forwarded message ----------
 Date: Mon, 15 May 2006 17:57:00 +0900
 From: Yamagami Yoshiyuki <yamagami@netsystems.co.jp>
 To: Maxim Konovalov <maxim@macomnet.ru>
 Cc: yamagami@netsystems.co.jp
 Subject: Re: kern/97079
 
 Hello,
 
 Maxim Konovalov wrote:
 > Hello,
 >
 > Could you please help Florent to test his patch?  Thanks!
 >
 >
 It operated without trouble by /etc/rc.d/jail rev 1.32.
 Thank you.
 -- 
 Yamagami Yoshiyuki
 
State-Changed-From-To: patched->closed 
State-Changed-By: flz 
State-Changed-When: Mon Sep 25 22:59:51 UTC 2006 
State-Changed-Why:  
Bug has been fixed some time ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97079 
>Unformatted:
