Page MenuHomeFreeBSD

D24570.id74532.diff
No OneTemporary

D24570.id74532.diff

Index: libexec/rc/rc.d/jail
===================================================================
--- libexec/rc/rc.d/jail
+++ libexec/rc/rc.d/jail
@@ -119,12 +119,16 @@
return
fi
eval _jconf=\"\${jail_${_jv}_conf:-/etc/jail.${_j}.conf}\"
+ eval _jconfdir=\"/etc/jail.d/${_j}.conf\"
eval _rootdir=\"\$jail_${_jv}_rootdir\"
eval _hostname=\"\$jail_${_jv}_hostname\"
if [ -z "$_rootdir" -o \
-z "$_hostname" ]; then
if [ -r "$_jconf" ]; then
_conf="$_jconf"
+ return 0
+ elif [ -r "$_jconfdir" ]; then
+ _conf="$_jconfdir"
return 0
elif [ -r "$jail_conf" ]; then
_conf="$jail_conf"
Index: share/man/man5/rc.conf.5
===================================================================
--- share/man/man5/rc.conf.5
+++ share/man/man5/rc.conf.5
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 28, 2020
+.Dd July 5, 2020
.Dt RC.CONF 5
.Os
.Sh NAME
@@ -3845,6 +3845,13 @@
utility.
The default value is
.Pa /etc/jail.conf .
+.Pa /etc/jail. Ns Ao Ar jname Ac Ns Va .conf
+and
+.Pa /etc/jail.d/ Ns Ao Ar jname Ac Ns Va .conf
+will also be used if
+.Va Ao Ar jname Ac Va
+is set in
+.Va jail_list .
.It Va jail_parallel_start
.Pq Vt bool
If set to

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 11, 1:10 AM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25131421
Default Alt Text
D24570.id74532.diff (1 KB)

Event Timeline