Bug 180916 - [jail] [regression] jail startup is broken for 8.4 without INET6
Summary: [jail] [regression] jail startup is broken for 8.4 without INET6
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.4-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Release Engineering
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-29 05:20 UTC by Eugene Grosbein
Modified: 2014-07-08 21:57 UTC (History)
3 users (show)

See Also:


Attachments
file.diff (558 bytes, patch)
2013-07-29 05:20 UTC, Eugene Grosbein
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein 2013-07-29 05:20:00 UTC
	Upgrade from 8.3 to 8.4 breaks start of jails when kernel has not INET6 option.

Fix: The patch made by Chris Rees helps:
	http://lists.freebsd.org/pipermail/freebsd-jail/2012-November/001984.html

	I've adjusted it for stable/8:
How-To-Repeat: 	Build 8.4 with custom kernel without INET6, create and configure a jail
	and run "service jail start", it fails to start it without descriptive message.
	The reason is that now it needs ip6.addr attribute missing for INET4-only kernels.
	This bug is fixed for 9-STABLE but not for 8.4
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-07-30 03:18:58 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-jail

Over to maintainer(s).
Comment 2 Alexey Markov 2014-07-01 06:31:49 UTC
This patch was tested almost for an year and works like a charm. Any chance to see it committed to 8-STABLE?
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2014-07-01 07:09:31 UTC
Can you apply this patch to 8/8.4-STABLE as well ?
Comment 4 Bryan Drewery freebsd_committer freebsd_triage 2014-07-02 19:19:26 UTC
Merged to stable/8 - leaving status as is since this is opened against 8.4.
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-07-02 19:19:36 UTC
A commit references this bug:

Author: bdrewery
Date: Wed Jul  2 19:18:59 UTC 2014
New revision: 268168
URL: http://svnweb.freebsd.org/changeset/base/268168

Log:
  MFC r243080:

    Only pass ip[46].addr when _addrl contains a value

  Partial MFC r204759:

    Redirect stdin from /dev/null when starting a jail:
      At least in RELENG_7 this fixes some start problems for some programs
      from the ports. It is also more correct, as a jail shall not expect
      input (interactivity) from the jail-host.

  PR:		180916

Changes:
_U  stable/8/etc/
_U  stable/8/etc/rc.d/
  stable/8/etc/rc.d/jail
Comment 6 Bryan Drewery freebsd_committer freebsd_triage 2014-07-02 19:54:55 UTC
Assign to re@ to decide on fate for releng/8.4
Comment 7 Glen Barber freebsd_committer freebsd_triage 2014-07-08 21:57:48 UTC
Fixed in r268435.