diff options
author | jamie <jamie@FreeBSD.org> | 2013-05-19 04:10:34 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2013-05-19 04:10:34 +0000 |
commit | 7941fefd80009514446ab99f32ddfd03121d225b (patch) | |
tree | 75f092c389fa19cc71a84d757fa9671acf2fe9fe /etc/rc | |
parent | 678597bc5abd3902a84210a703be65ad9c972b5d (diff) | |
download | FreeBSD-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/rc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |