mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-09-21 15:52:39 +02:00
jail.conf(5): Fix and expand description of ".include".
Escape a period that caused a line not to be includesd. Also mention that glob(3) patterns may be included, and a consequence of that. PR: 273561 Reported by: crest@rlwinm.de Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41723
This commit is contained in:
parent
3141e51d2e
commit
165234d552
@ -22,7 +22,7 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd Jun 3, 2023
|
.Dd September 5, 2023
|
||||||
.Dt JAIL.CONF 5
|
.Dt JAIL.CONF 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -164,11 +164,22 @@ and
|
|||||||
.Ss Includes
|
.Ss Includes
|
||||||
A line of the form
|
A line of the form
|
||||||
.Bd -literal -offset ident
|
.Bd -literal -offset ident
|
||||||
.include "filename";
|
\&.include "filename";
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
will include another file in the configuration. The filename must be
|
will include another file (or files) in the configuration.
|
||||||
a literal string, and cannot contain variable expansions.
|
The filename should be either absolute, or relative to the
|
||||||
|
configuration file's directory. It cannot contain variable
|
||||||
|
expansions, but may contain
|
||||||
|
.Xr glob 3
|
||||||
|
patterns.
|
||||||
|
.Pp
|
||||||
|
The included file must exist, though a filename glob may match zero or
|
||||||
|
more files. This allows inclusion of any/all files in a directory,
|
||||||
|
such as
|
||||||
|
.Dq /etc/jail.conf.d/*.conf ,
|
||||||
|
or conditional inclusion of a single file, such as
|
||||||
|
.Dq jail.foo[.]conf .
|
||||||
.Ss Comments
|
.Ss Comments
|
||||||
The configuration file may contain comments in the common C, C++, and
|
The configuration file may contain comments in the common C, C++, and
|
||||||
shell formats:
|
shell formats:
|
||||||
|
Loading…
Reference in New Issue
Block a user