ports/179769: [Maintainer update] sysutils/qjail Bug fix.
Joe Barbish
qjail at a1poweruser.com
Thu Jun 20 14:00:02 UTC 2013
>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:
More information about the freebsd-ports-bugs
mailing list