From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 5 09:40:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C16BB382 for ; Sun, 5 May 2013 09:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A26367F3 for ; Sun, 5 May 2013 09:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r459e0YO025389 for ; Sun, 5 May 2013 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r459e0qw025388; Sun, 5 May 2013 09:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 5 May 2013 09:40:00 GMT Resent-Message-Id: <201305050940.r459e0qw025388@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yamagi Burmeister Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9FDAD78 for ; Sun, 5 May 2013 09:34:41 +0000 (UTC) (envelope-from yamagi@yamagi.org) Received: from mail.yamagi.org (mail.yamagi.org [IPv6:2a01:4f8:121:2102:1::7]) by mx1.freebsd.org (Postfix) with ESMTP id 263157DE for ; Sun, 5 May 2013 09:34:40 +0000 (UTC) Received: from happy.home.yamagi.org (p579A6312.dip0.t-ipconnect.de [87.154.99.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yamagi.org (Postfix) with ESMTPSA id 37E5E1666312 for ; Sun, 5 May 2013 11:34:37 +0200 (CEST) Received: from happy.home.yamagi.org (localhost [127.0.0.1]) by happy.home.yamagi.org (8.14.5/8.14.5) with ESMTP id r459YWN6080154 for ; Sun, 5 May 2013 11:34:32 +0200 (CEST) (envelope-from yamagi@happy.home.yamagi.org) Received: (from yamagi@localhost) by happy.home.yamagi.org (8.14.5/8.14.5/Submit) id r459YWs5080153; Sun, 5 May 2013 11:34:32 +0200 (CEST) (envelope-from yamagi) Message-Id: <201305050934.r459YWs5080153@happy.home.yamagi.org> Date: Sun, 5 May 2013 11:34:32 +0200 (CEST) From: Yamagi Burmeister To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/178344: [UPDATE] Update sysutils/jail2 to 1.1 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Yamagi Burmeister List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 May 2013 09:40:00 -0000 >Number: 178344 >Category: ports >Synopsis: [UPDATE] Update sysutils/jail2 to 1.1 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun May 05 09:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Yamagi Burmeister >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD happy.home.yamagi.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243792M: Sun Dec 2 17:53:10 CET 2012 root@happy.home.yamagi.org:/usr/obj/usr/src/sys/HAPPY amd64 >Description: This updates sysutils/jail2 to version 1.1. Several bugs were fixed: - Correct documentation of enforce_statfs parameter - Load devfs rules before starting the jail. This fixes the "devfs rules are ignored"-bug. - Remove some debug output that sneaked in. >How-To-Repeat: >Fix: Index: Makefile =================================================================== --- Makefile (Revision 317405) +++ Makefile (Arbeitskopie) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= jail2 -PORTVERSION= 1.0 +PORTVERSION= 1.1 CATEGORIES= sysutils MASTER_SITES= # DISTFILES= # Index: files/jail2.in =================================================================== --- files/jail2.in (Revision 317405) +++ files/jail2.in (Arbeitskopie) @@ -12,7 +12,7 @@ # To manage ZFS datasets within a jail the dataset must have # set the parameter "jailed" to 1. Additionally the jail must # have set the proberties "allow.mount", "allow.mount.zfs" -# and "enforce_statfs" to value lesser than 2. +# and "enforce_statfs" to 0. # PROVIDE: jail # REQUIRE: LOGIN cleanvar @@ -31,6 +31,8 @@ { echo -n "Starting jails: " + devfs_init_rulesets + for _j in ${jail2_list}; do echo -n "${_j} " @@ -48,7 +50,6 @@ for _ds in ${_zfs}; do _jailed=`zfs get -H jailed ${_ds} 2>/dev/null | awk '{ print $3 }'` if [ "${_jailed}" = "on" ]; then - echo "zfs jail "${_jid}" ${_ds} 2>/dev/null" zfs jail "${_jid}" ${_ds} 2>/dev/null fi done @@ -80,7 +81,6 @@ for _ds in ${_zfs}; do _jailed=`zfs get -H jailed ${_ds} 2>/dev/null | awk '{ print $3 }'` if [ "${_jailed}" = "on" ]; then - echo "zfs unjail "${_jid}" ${_ds} 2>/dev/null" zfs unjail "${_jid}" ${_ds} 2>/dev/null fi done >Release-Note: >Audit-Trail: >Unformatted: