Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137330387
D24570.id71321.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24570.id71321.diff
View Options
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
@@ -3852,8 +3852,11 @@
The configuration filename used by
.Xr jail 8
utility.
-The default value is
-.Pa /etc/jail.conf .
+The default values are
+.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 .
.It Va jail_parallel_start
.Pq Vt bool
If set to
Index: usr.sbin/jail/jail.8
===================================================================
--- usr.sbin/jail/jail.8
+++ usr.sbin/jail/jail.8
@@ -143,8 +143,11 @@
.It Fl f Ar conf_file
Use configuration file
.Ar conf_file
-instead of the default
-.Pa /etc/jail.conf .
+instead of the defaults
+.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 .
.It Fl h
Resolve the
.Va host.hostname
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 23, 1:18 PM (55 m, 44 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26000840
Default Alt Text
D24570.id71321.diff (1 KB)
Attached To
Mode
D24570: Add support for jail.d
Attached
Detach File
Event Timeline
Log In to Comment