1#!/bin/sh 2# |
3# $FreeBSD: stable/10/etc/rc.d/jail 278484 2015-02-10 01:05:51Z jamie $ |
4# 5 6# PROVIDE: jail 7# REQUIRE: LOGIN FILESYSTEMS 8# BEFORE: securelevel 9# KEYWORD: nojail shutdown 10 11. /etc/rc.subr --- 11 unchanged lines hidden (view full) --- 23: ${jail_conf:=/etc/jail.conf} 24: ${jail_program:=/usr/sbin/jail} 25: ${jail_consolecmd:=/usr/bin/login -f root} 26: ${jail_jexec:=/usr/sbin/jexec} 27: ${jail_jls:=/usr/sbin/jls} 28 29need_dad_wait= 30 |
31# extract_var jail name param num defval |
32# Extract value from ${jail_$jail_$name} or ${jail_$name} and 33# set it to $param. If not defined, $defval is used. 34# When $num is [0-9]*, ${jail_$jail_$name$num} are looked up and 35# $param is set by using +=. 36# When $num is YN or NY, the value is interpret as boolean. 37extract_var() 38{ 39 local i _j _name _param _num _def _name1 _name2 --- 188 unchanged lines hidden (view full) --- 228 esac 229 fi 230 eval : \${jail_${_j}_fdescfs_enable:=${jail_fdescfs_enable:-NO}} 231 if checkyesno jail_${_j}_fdescfs_enable; then 232 echo " mount.fdescfs;" 233 fi 234 eval : \${jail_${_j}_procfs_enable:=${jail_procfs_enable:-NO}} 235 if checkyesno jail_${_j}_procfs_enable; then |
236 echo " mount.procfs;" |
237 fi 238 239 eval : \${jail_${_j}_mount_enable:=${jail_mount_enable:-NO}} 240 if checkyesno jail_${_j}_mount_enable; then 241 echo " allow.mount;" >> $_conf 242 fi 243 244 extract_var $_j set_hostname_allow allow.set_hostname YN NO --- 324 unchanged lines hidden --- |