From owner-freebsd-doc@FreeBSD.ORG Fri Feb 28 13:50:00 2014 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4AE7B26 for ; Fri, 28 Feb 2014 13:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9F24B1CCC for ; Fri, 28 Feb 2014 13:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1SDo0Vm053252 for ; Fri, 28 Feb 2014 13:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1SDo0Oh053251; Fri, 28 Feb 2014 13:50:00 GMT (envelope-from gnats) Resent-Date: Fri, 28 Feb 2014 13:50:00 GMT Resent-Message-Id: <201402281350.s1SDo0Oh053251@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jack-Benny Persson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF750AFC for ; Fri, 28 Feb 2014 13:49:11 +0000 (UTC) Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CBFF11CB7 for ; Fri, 28 Feb 2014 13:49:11 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1SDnBji039900 for ; Fri, 28 Feb 2014 13:49:11 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1SDnBqi039893; Fri, 28 Feb 2014 13:49:11 GMT (envelope-from nobody) Message-Id: <201402281349.s1SDnBqi039893@cgiserv.freebsd.org> Date: Fri, 28 Feb 2014 13:49:11 GMT From: Jack-Benny Persson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: docs/187142: The Handbook (chapter 15.4) does not mention /etc/jail.conf X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 13:50:00 -0000 >Number: 187142 >Category: docs >Synopsis: The Handbook (chapter 15.4) does not mention /etc/jail.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Feb 28 13:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Jack-Benny Persson >Release: >Organization: >Environment: >Description: FreeBSD Handbook chapter 15.4 (Creating and Controlling Jails). Since FreeBSD 9.1 the /etc/jail.conf file is the recommended way to configure jails. The Handbook does not mention this in it's present form. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: en_US.ISO8859-1/books/handbook/jails/chapter.xml =================================================================== --- en_US.ISO8859-1/books/handbook/jails/chapter.xml (revision 44074) +++ en_US.ISO8859-1/books/handbook/jails/chapter.xml (working copy) @@ -373,6 +373,25 @@ For a full list of available options, please see the &man.rc.conf.5; manual page. + + +From FreeBSD 9.1 and above the recommended way is to place the jail settings in /etc/jail.conf (see &man.jail.conf.5;). +For example a jail config similar to above would look like this in /etc/jail.conf. + +www { # Name of the jail from jail_list in /etc/rc.conf + host.hostname = www.example.org; # Hostname + ip4.addr = 192.168.0.10; # IP address of the jail + path = "/usr/jail/www"; # Path to the jail + devfs_ruleset = www_ruleset; # DevFS ruleset + mount.devfs; # Mount devfs inside the jail + exec.start = "/bin/sh /etc/rc"; # Start command to run + exec.stop = "/bin/sh /etc/rc.shutdown"; # Stop command to run to stop the jail +} + + + + + >Release-Note: >Audit-Trail: >Unformatted: