From owner-freebsd-questions@FreeBSD.ORG Mon May 13 20:42:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 339DB3CF for ; Mon, 13 May 2013 20:42:57 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) by mx1.freebsd.org (Postfix) with ESMTP id C0125954 for ; Mon, 13 May 2013 20:42:56 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id j13so6987567wgh.16 for ; Mon, 13 May 2013 13:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=QtlUaca9rUhEKksOmX6PhIZ28deWAStvo3mm/foVV/0=; b=L3LXdawUNJrJDR+dN+odd/xt+hiMtq+BPWkWJEGhUNtb5LqgSYrbtsDkLDug0gjlnl rWJ4dQPgTirchxHEobJ3Snp2lYaYrh0Af0o+PCu3a/nFH1HT0zIcaupXnCmmBs0NmEtH +sU5aQ3L/0P5btFEXmrq7pQGUvRBATVdeC1hDdZiCuzOYenF/FrEbEKZJcdU0+rRtzsA rtHowHb6LJmja/9EdRgucCoY53ijcqw/klSwOZndkrcXkRbvG/uoQAVmvZIZUhTDge4H b+IUGfcOBKBuQDE7oqqbtODclB8WtSlj/Psz7Xrw9udZ1sdBuMDnJn3Ae5sbTQPGTWL7 xBQg== X-Received: by 10.180.96.69 with SMTP id dq5mr22517686wib.0.1368477775914; Mon, 13 May 2013 13:42:55 -0700 (PDT) Received: from melon.localnet (227.33.91.91.rev.sfr.net. [91.91.33.227]) by mx.google.com with ESMTPSA id s1sm17896074wiz.2.2013.05.13.13.42.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 13 May 2013 13:42:55 -0700 (PDT) From: David Demelier To: Joe Subject: Re: /etc/jail.conf for automatically started jails listed in /etc/rc.conf Date: Mon, 13 May 2013 22:42:47 +0200 Message-ID: <1990818.dWVxsxnVR3@melon> User-Agent: KMail/4.10.1 (FreeBSD/9.1-RELEASE-p1; KDE/4.10.1; amd64; ; ) In-Reply-To: <51914DC1.1050207@a1poweruser.com> References: <11698066.Kggl9cS1ZD@melon> <51914DC1.1050207@a1poweruser.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 20:42:57 -0000 Le lundi 13 mai 2013 16:32:01 Joe a =E9crit : > David Demelier wrote: > > Hello dear, > >=20 > > Does jail.conf(5) does not work for jails listed in the rc.conf ? > >=20 > > I've added in /etc/jail.conf: > >=20 > > foo { > >=20 > > hostname=3DFoo; > > path=3D/jails/foo; > > allow.sysvipc=3D1; > >=20 > > } > >=20 > > And in /etc/rc.conf only foo in the jail_list parameter, but when I= try to > > start the jail it still complain about missing hostname. > >=20 > > Regards, >=20 > There are 2 methods for configuring jails. >=20 > The legacy method which you put the jail config statements in the hos= ts > /etc/rc.conf file and start and stop control is done by the hosts > /etc/rc.d/jail script at boot time. >=20 > The jail(8) method which has it's own jail config statements in the > hosts /etc/jail.conf file and uses the jail(8) program for starting a= nd > stopping. You can create a jail.conf file for each jail(8) and start = it > using jail -c -f "/etc/jailname.jail.conf" and stop by issuing > jail -f "/etc/jailname.jail.conf" -r jailname >=20 > You can not mix the 2 methods. My real problem is that I wanted to add allow.sysvipc only for *one* ja= il and=20 I can't find a real solution by jail_* flags in /etc/rc.conf There is jail_allow_sysvipc but it enable it for all jails.