Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/jail/jail.conf.5
Show All 18 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" 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. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd July 8, 2022 | .Dd Jun 3, 2023 | ||||
.Dt JAIL.CONF 5 | .Dt JAIL.CONF 5 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm jail.conf | .Nm jail.conf | ||||
.Nd configuration file for | .Nd configuration file for | ||||
.Xr jail 8 | .Xr jail 8 | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
A | A | ||||
▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | |||||
If hierarchical jails are defined, a partial-matching wildcard | If hierarchical jails are defined, a partial-matching wildcard | ||||
definition may be specified. | definition may be specified. | ||||
For example, a definition with a name of | For example, a definition with a name of | ||||
.Dq foo.* | .Dq foo.* | ||||
would apply to jails with names like | would apply to jails with names like | ||||
.Dq foo.bar | .Dq foo.bar | ||||
and | and | ||||
.Dq foo.bar.baz . | .Dq foo.bar.baz . | ||||
.Ss Includes | |||||
A line of the form | |||||
.Bd -literal -offset ident | |||||
.include "filename"; | |||||
.Ed | |||||
.Pp | |||||
will include another file in the configuration. The filename must be | |||||
a literal string, and cannot contain variable expansions. | |||||
.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: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
/* This is a C style comment. | /* This is a C style comment. | ||||
* It may span multiple lines. | * It may span multiple lines. | ||||
*/ | */ | ||||
Show All 33 Lines | |||||
# This jail overrides the defaults defined above. | # This jail overrides the defaults defined above. | ||||
bar { | bar { | ||||
exec.start = ''; | exec.start = ''; | ||||
exec.stop = ''; | exec.stop = ''; | ||||
path = /; | path = /; | ||||
mount.nodevfs; | mount.nodevfs; | ||||
persist; // Required because there are no processes | persist; // Required because there are no processes | ||||
} | } | ||||
# Include configurations from standard locations. | |||||
\[char46]include "/etc/jail.conf.d/*.conf"; | |||||
\[char46]include "/etc/jail.*.conf"; | |||||
\[char46]include "/usr/local/etc/jail[.]conf"; | |||||
\[char46]include "/usr/local/etc/jail.conf.d/*.conf"; | |||||
\[char46]include "/usr/local/etc/jail.*.conf"; | |||||
.Ed | .Ed | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr jail_set 2 , | .Xr jail_set 2 , | ||||
.Xr rc.conf 5 , | .Xr rc.conf 5 , | ||||
.Xr jail 8 , | .Xr jail 8 , | ||||
.Xr jls 8 | .Xr jls 8 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
Show All 17 Lines |