From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 20 14:00:02 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 A3B5F3CB for ; Thu, 20 Jun 2013 14:00:02 +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 8A2AC1B24 for ; Thu, 20 Jun 2013 14:00:02 +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 r5KE0248041165 for ; Thu, 20 Jun 2013 14:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5KE02dr041164; Thu, 20 Jun 2013 14:00:02 GMT (envelope-from gnats) Resent-Date: Thu, 20 Jun 2013 14:00:02 GMT Resent-Message-Id: <201306201400.r5KE02dr041164@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, Joe Barbish Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A97581CD for ; Thu, 20 Jun 2013 13:55:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 821CF1AD3 for ; Thu, 20 Jun 2013 13:55:15 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5KDtF9i068275 for ; Thu, 20 Jun 2013 13:55:15 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5KDtFk4068274; Thu, 20 Jun 2013 13:55:15 GMT (envelope-from nobody) Message-Id: <201306201355.r5KDtFk4068274@oldred.freebsd.org> Date: Thu, 20 Jun 2013 13:55:15 GMT From: Joe Barbish To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/179769: [Maintainer update] sysutils/qjail Bug fix. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jun 2013 14:00:02 -0000 >Number: 179769 >Category: ports >Synopsis: [Maintainer update] sysutils/qjail Bug fix. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Jun 20 14:00:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Joe Barbish >Release: 9.1-RELEASE i386 >Organization: none >Environment: >Description: 1. sharefs/usr/src and sharefs/usr/ports were missing links. Design was to have sharedfs share those directories with all jails. Added code to mkdir src and port on sharedfs and link to template. 2. For update -b, archive sharedfs, restore sharedfs and install commands, replaced the logic of rolling through the qjail.local directory opening each definition file to check if jail was running which left the last opened jail variables populated, with logic based on using jls command to list the running jails and then checking jls list to qjail.global directory content of qjail owned jails to determine if jail was running. 3. For archive of image jail, removed qjail prefix from variable name. 4. For "update -b" host binaries have noschg set on a few files, added chflags -R noschg "${sharedfs}/${dir}" chflags -R nosunlink "${sharedfs}/${dir}" commands to remove said status on all files. 5. Add "mount.devfs=1" parameters to build_def function of qjail script and qjail-bootime script. This enables ps and top commands to work inside of jail. This is a work around for /dev bug in jail(8). 6. "qjail create -a img20 -i 25 img25 10.0.10.20" Using a image archive caused cpio to complain when copying the template to populate the img file. Replaced cpio with "cp -R dir/" command, also made the same change to the dup image logic. The cpio command has problems working with sparse files. 7. Added "qjail config -h" option. This option provides a way to enable "SSH" on a jail. Same option as -c of the "qjail create" command. 8. Updated "man qjail" with instructions on using the "mv" command to give jails access to the hosts "/usr/ports" or "/usr/src" directories. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN qjail-3.0/Makefile qjail/Makefile --- qjail-3.0/Makefile 2013-06-17 09:36:40.000000000 -0400 +++ qjail/Makefile 2013-06-17 09:41:31.000000000 -0400 @@ -2,7 +2,7 @@ # $FreeBSD: sysutils/qjail/Makefile 319868 2013-06-04 15:10:01Z pawel $ PORTNAME= qjail -PORTVERSION= 3.0 +PORTVERSION= 3.1 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME} diff -ruN qjail-3.0/distinfo qjail/distinfo --- qjail-3.0/distinfo 2013-06-17 09:36:40.000000000 -0400 +++ qjail/distinfo 2013-06-20 09:19:21.000000000 -0400 @@ -1,2 +1,2 @@ -SHA256 (qjail-3.0.tar.bz2) = 73a086651c8ee0ecaf2e22ba2951567250abac562d09284f80a78001eb6d8b3f -SIZE (qjail-3.0.tar.bz2) = 119727 +SHA256 (qjail-3.1.tar.bz2) = bee2c505ca735aa5de1e8b88680ee5d61bf42e505c5d4d28c899bb5caaaf3ac8 +SIZE (qjail-3.1.tar.bz2) = 119940 >Release-Note: >Audit-Trail: >Unformatted: