summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjamie <jamie@FreeBSD.org>2015-02-10 01:05:51 +0000
committerjamie <jamie@FreeBSD.org>2015-02-10 01:05:51 +0000
commitf8ff07ebef14d8d87007863c4b3bfcf35f6b515f (patch)
tree8edd7cea4fda74d466ec21cd28242837d73a9771 /etc
parent715b3cae1f17b5ea056fd103ad87563421deac63 (diff)
downloadFreeBSD-src-f8ff07ebef14d8d87007863c4b3bfcf35f6b515f.zip
FreeBSD-src-f8ff07ebef14d8d87007863c4b3bfcf35f6b515f.tar.gz
MFC r278323:
Add mount.procfs jail parameter, so procfs can be mounted when a prison's root is in its fstab. Also fix a typo while I'm at it. PR: 197237 197066
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/jail5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail
index 0b886fd..ea62f48 100755
--- a/etc/rc.d/jail
+++ b/etc/rc.d/jail
@@ -28,7 +28,7 @@ extra_commands="config console status"
need_dad_wait=
-# extact_var jail name param num defval
+# extract_var jail name param num defval
# Extract value from ${jail_$jail_$name} or ${jail_$name} and
# set it to $param. If not defined, $defval is used.
# When $num is [0-9]*, ${jail_$jail_$name$num} are looked up and
@@ -233,8 +233,7 @@ parse_options()
fi
eval : \${jail_${_j}_procfs_enable:=${jail_procfs_enable:-NO}}
if checkyesno jail_${_j}_procfs_enable; then
- echo " mount += " \
- "\"procfs ${_rootdir%/}/proc procfs rw 0 0\";"
+ echo " mount.procfs;"
fi
eval : \${jail_${_j}_mount_enable:=${jail_mount_enable:-NO}}
OpenPOWER on IntegriCloud