[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-bugs
Subject:    conf/181650: /etc/rc.d/jail fails if  a kernel built without INET6
From:       Alexey Markov <redrat () mail ! ru>
Date:       2013-08-29 13:21:26
Message-ID: 201308291321.r7TDLQIP060704 () oldred ! freebsd ! org
[Download RAW message or body]


> Number:         181650
> Category:       conf
> Synopsis:       /etc/rc.d/jail fails if  a kernel built without INET6
> Confidential:   no
> Severity:       non-critical
> Priority:       low
> Responsible:    freebsd-bugs
> State:          open
> Quarter:        
> Keywords:       
> Date-Required:
> Class:          sw-bug
> Submitter-Id:   current-users
> Arrival-Date:   Thu Aug 29 13:30:01 UTC 2013
> Closed-Date:
> Last-Modified:
> Originator:     Alexey Markov
> Release:        8.4-RELEASE-p3
> Organization:
JSC Complitex
> Environment:
FreeBSD host.redrat.ru 8.4-RELEASE-p3 FreeBSD 8.4-RELEASE-p3 #0: Tue Aug 27 09:33:54 \
MSK 2013 redrat@host.redrat.ru:/arc/obj/arc/src/sys/HOST amd64
> Description:
If a kernel built without IPv6 support then /etc/rc.d/jail fails to run with an \
error: "unknown parameter: ip6". This very longstanding bug already fixed in the 9.x \
branch but still exists in the 8.x while patch is available: \
http://lists.freebsd.org/pipermail/freebsd-jail/2012-November/001984.html

I have attached actual patch for 8.4 to this PR. Any chance to see this bug fixed \
after all? Say, in the 8.4-RELEASE-p4?

> How-To-Repeat:
Rebuild kernel with INET6 option commented out and try to run a /etc/rc.d/jail \
script.
> Fix:
Apply attached patch.

Patch attached with submission follows:

--- jail.orig	2013-08-27 09:58:54.000000000 +0400
+++ jail	2013-08-28 11:44:16.000000000 +0400
@@ -647,7 +647,8 @@
 		done
 
 		eval ${_setfib} jail -n ${_jail} ${_flags} -i -c path=${_rootdir} \
                host.hostname=${_hostname} \
-			ip4.addr=\"${_addrl}\" ip6.addr=\"${_addr6l}\" ${_parameters} \
command=${_exec_start} > ${_tmp_jail} 2>&1 +			${_addrl:+ip4.addr=\"${_addrl}\"} \
${_addr6l:+ip6.addr=\"${_addr6l}\"} \ +			${_parameters} command=${_exec_start} > \
${_tmp_jail} 2>&1  
 		if [ "$?" -eq 0 ] ; then
 			_jail_id=$(head -1 ${_tmp_jail})


> Release-Note:
> Audit-Trail:
> Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic