From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 28 01:30:07 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFD511065672 for ; Tue, 28 Feb 2012 01:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 896548FC12 for ; Tue, 28 Feb 2012 01:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1S1U7CA001682 for ; Tue, 28 Feb 2012 01:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1S1U7c3001678; Tue, 28 Feb 2012 01:30:07 GMT (envelope-from gnats) Resent-Date: Tue, 28 Feb 2012 01:30:07 GMT Resent-Message-Id: <201202280130.q1S1U7c3001678@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Glen Barber Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED27B1065673 for ; Tue, 28 Feb 2012 01:21:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D83528FC08 for ; Tue, 28 Feb 2012 01:21:06 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1S1L6K6047799 for ; Tue, 28 Feb 2012 01:21:06 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q1S1L6Sr047797; Tue, 28 Feb 2012 01:21:06 GMT (envelope-from nobody) Message-Id: <201202280121.q1S1L6Sr047797@red.freebsd.org> Date: Tue, 28 Feb 2012 01:21:06 GMT From: Glen Barber To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/165515: [jail][patch] "jail: unknown parameter: allow.nomount" when starting jail X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 01:30:07 -0000 >Number: 165515 >Category: bin >Synopsis: [jail][patch] "jail: unknown parameter: allow.nomount" when starting jail >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: Tue Feb 28 01:30:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Glen Barber >Release: 10.0-CURRENT r232116M >Organization: >Environment: FreeBSD nucleus 10.0-CURRENT FreeBSD 10.0-CURRENT #7 r232116M: Sun Feb 26 14:12:14 EST 2012 root@nucleus:/usr/obj/usr/src/sys/NUCLEUS amd64 >Description: On a recent -CURRENT, the jail(8) rc script fails to start jails. This seems to be caused by looking up a sysctl that does not exist. >How-To-Repeat: Create a minimalistic jail setup as follows: nucleus# cat /etc/rc.conf.local # jail_enable="YES" jail_parallel_start="YES" jail_list="cfm" jail_cfm_hostname="cfm" jail_cfm_rootdir="/jails/cfm" jail_cfm_ip="172.16.1.2" Start the jail with the rc(8) script: nucleus# sh -x /etc/rc.d/jail start cfm + . /etc/rc.subr [...] + eval '_x="$jail_cfm_ip_multi0"' + _x='' + break + echo ' cannot start jail "cfm": ' cannot start jail "cfm": + tail +2 /tmp/jail.bJIDqW5x/jail.52395 jail: unknown parameter: allow.nomount >Fix: The attached patch fixes it for me. Patch attached with submission follows: Index: usr.sbin/jail/jail.c =================================================================== --- usr.sbin/jail/jail.c (revision 232116) +++ usr.sbin/jail/jail.c (working copy) @@ -84,7 +84,7 @@ { "security.jail.chflags_allowed", "allow.nochflags", "allow.chflags" }, { "security.jail.mount_allowed", - "allow.nomount", "allow.mount" }, + "allow.mount", "allow.nomount" }, { "security.jail.socket_unixiproute_only", "allow.socket_af", "allow.nosocket_af" }, }; >Release-Note: >Audit-Trail: >Unformatted: