summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorjamie <jamie@FreeBSD.org>2013-05-19 04:10:34 +0000
committerjamie <jamie@FreeBSD.org>2013-05-19 04:10:34 +0000
commit7941fefd80009514446ab99f32ddfd03121d225b (patch)
tree75f092c389fa19cc71a84d757fa9671acf2fe9fe /etc/rc
parent678597bc5abd3902a84210a703be65ad9c972b5d (diff)
downloadFreeBSD-src-7941fefd80009514446ab99f32ddfd03121d225b.zip
FreeBSD-src-7941fefd80009514446ab99f32ddfd03121d225b.tar.gz
Refine the "nojail" rc keyword, adding "nojailvnet" for files that don't
apply to most jails but do apply to vnet jails. This includes adding a new sysctl "security.jail.vnet" to identify vnet jails. PR: conf/149050 Submitted by: mdodd MFC after: 3 days
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 99cfda8..59dece8 100644
--- a/etc/rc
+++ b/etc/rc
@@ -77,6 +77,9 @@ if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
if [ "$early_late_divider" = "FILESYSTEMS" ]; then
early_late_divider=NETWORKING
fi
+ if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then
+ skip="$skip -s nojailvnet"
+ fi
fi
# Do a first pass to get everything up to $early_late_divider so that
OpenPOWER on IntegriCloud