From nobody@FreeBSD.org  Fri Feb  9 20:11:38 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 05A6616A402
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Feb 2007 20:11:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id E939013C461
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Feb 2007 20:11:37 +0000 (UTC)
	(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 l19KBb6O073362
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 9 Feb 2007 20:11:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l19KBbmC073361;
	Fri, 9 Feb 2007 20:11:37 GMT
	(envelope-from nobody)
Message-Id: <200702092011.l19KBbmC073361@www.freebsd.org>
Date: Fri, 9 Feb 2007 20:11:37 GMT
From: Kevin Way<kevin@insidesystems.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] RELENG_6_2 rc.d/jail unaliases incorrectly, on failed startup
X-Send-Pr-Version: www-3.0

>Number:         108988
>Category:       conf
>Synopsis:       [patch] RELENG_6_2 rc.d/jail unaliases incorrectly, on failed startup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    simon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 09 20:20:06 GMT 2007
>Closed-Date:    Wed Feb 14 18:37:33 GMT 2007
>Last-Modified:  Wed Feb 14 18:37:33 GMT 2007
>Originator:     Kevin Way
>Release:        RELENG_6_2
>Organization:
InsideSystems, Inc.
>Environment:
FreeBSD bluefin.insidesystems.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 08:43:30 UTC 2007     root@portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  amd64
>Description:
If a jail has an error while setting up, rc.d/jail can end up removing
the wrong IP address, because it calls ifconfig -alias with an incorrect
variable.
>How-To-Repeat:
setup a jail that fails on startup.
>Fix:
--- jail.orig   Fri Feb  9 15:00:20 2007
+++ jail        Fri Feb  9 15:02:59 2007
@@ -331,8 +331,8 @@
                                echo ${_jail_id} > /var/run/jail_${_jail}.id
                        else
                                jail_umount_fs
-                               if [ -n "${jail_interface}" ]; then
-                                       ifconfig ${jail_interface} -alias ${jail_ip}
+                               if [ -n "${_interface}" ]; then
+                                       ifconfig ${_interface} -alias ${_ip}
                                fi
                                echo " cannot start jail \"${_jail}\": "
                                tail +2 ${_tmp_jail}

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Feb 9 21:38:36 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: "Simon L. Nielsen" <simon@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: conf/108988: [patch] RELENG_6_2 rc.d/jail unaliases incorrectly, on failed startup
Date: Sat, 10 Feb 2007 01:13:14 +0100

 Hey,
 
 Note that this was fixed in src/etc/rc.d/jail 1.35 and have been
 MFC'ed to RELENG_6 some time ago, but it didn't make it into 6.2.  If
 somebody cares enough (I don't) they might convince re@ to make this
 an Errata.
 
 -- 
 Simon L. Nielsen
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Wed Feb 14 18:36:47 UTC 2007 
State-Changed-Why:  
Duplicate of conf/107278. 


Responsible-Changed-From-To: freebsd-rc->simon 
Responsible-Changed-By: simon 
Responsible-Changed-When: Wed Feb 14 18:36:47 UTC 2007 
Responsible-Changed-Why:  
I will handle any followups. 

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