Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/website/static/security/patches/EN-14:09/jail.patch
18096 views
1
Index: etc/rc.d/jail
2
===================================================================
3
--- etc/rc.d/jail (revision 268273)
4
+++ etc/rc.d/jail (working copy)
5
@@ -647,7 +647,9 @@ jail_start()
6
done
7
8
eval ${_setfib} jail -n ${_jail} ${_flags} -i -c path=${_rootdir} host.hostname=${_hostname} \
9
- ip4.addr=\"${_addrl}\" ip6.addr=\"${_addr6l}\" ${_parameters} command=${_exec_start} > ${_tmp_jail} 2>&1
10
+ ${_addrl:+ip4.addr=\"${_addrl}\"} ${_addr6l:+ip6.addr=\"${_addr6l}\"} \
11
+ ${_parameters} command=${_exec_start} > ${_tmp_jail} 2>&1 \
12
+ </dev/null
13
14
if [ "$?" -eq 0 ] ; then
15
_jail_id=$(head -1 ${_tmp_jail})
16
17