- Update to 1.1

Changes:

  - 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.

PR:		ports/178344
Submitted by:	Yamagi Burmeister <yamagi@yamagi.org> (maintainer)
This commit is contained in:
Bryan Drewery 2013-05-08 20:31:59 +00:00
parent bfe24f17a1
commit 7da857cb1a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317708
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= jail2
PORTVERSION= 1.0
PORTVERSION= 1.1
CATEGORIES= sysutils
MASTER_SITES= #
DISTFILES= #

View file

@ -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 @@ jail2_start()
{
echo -n "Starting jails: "
devfs_init_rulesets
for _j in ${jail2_list}; do
echo -n "${_j} "
@ -48,7 +50,6 @@ jail2_start()
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 @@ jail2_stop()
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