2003-04-09 03:04:12 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2003 Mike Barcroft <mike@FreeBSD.org>
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" 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
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2013-05-17 08:48:16 +00:00
|
|
|
.Dd July 20, 2012
|
2003-04-09 03:04:12 +00:00
|
|
|
.Dt JLS 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm jls
|
MFp4:
Bring in updated jail support from bz_jail branch.
This enhances the current jail implementation to permit multiple
addresses per jail. In addtion to IPv4, IPv6 is supported as well.
Due to updated checks it is even possible to have jails without
an IP address at all, which basically gives one a chroot with
restricted process view, no networking,..
SCTP support was updated and supports IPv6 in jails as well.
Cpuset support permits jails to be bound to specific processor
sets after creation.
Jails can have an unrestricted (no duplicate protection, etc.) name
in addition to the hostname. The jail name cannot be changed from
within a jail and is considered to be used for management purposes
or as audit-token in the future.
DDB 'show jails' command was added to aid debugging.
Proper compat support permits 32bit jail binaries to be used on 64bit
systems to manage jails. Also backward compatibility was preserved where
possible: for jail v1 syscalls, as well as with user space management
utilities.
Both jail as well as prison version were updated for the new features.
A gap was intentionally left as the intermediate versions had been
used by various patches floating around the last years.
Bump __FreeBSD_version for the afore mentioned and in kernel changes.
Special thanks to:
- Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches
and Olivier Houchard (cognet) for initial single-IPv6 patches.
- Jeff Roberson (jeff) and Randall Stewart (rrs) for their
help, ideas and review on cpuset and SCTP support.
- Robert Watson (rwatson) for lots and lots of help, discussions,
suggestions and review of most of the patch at various stages.
- John Baldwin (jhb) for his help.
- Simon L. Nielsen (simon) as early adopter testing changes
on cluster machines as well as all the testers and people
who provided feedback the last months on freebsd-jail and
other channels.
- My employer, CK Software GmbH, for the support so I could work on this.
Reviewed by: (see above)
MFC after: 3 months (this is just so that I get the mail)
X-MFC Before: 7.2-RELEASE if possible
2008-11-29 14:32:14 +00:00
|
|
|
.Nd "list jails"
|
2003-04-09 03:04:12 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2013-05-17 08:48:16 +00:00
|
|
|
.Op Fl dhNnqsv
|
2009-05-27 14:30:26 +00:00
|
|
|
.Op Fl j Ar jail
|
|
|
|
.Op Ar parameter ...
|
2003-04-09 03:04:12 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2009-05-27 14:30:26 +00:00
|
|
|
utility lists all active jails, or the specified jail.
|
|
|
|
Each jail is represented by one row which contains space-separated values of
|
|
|
|
the listed
|
|
|
|
.Ar parameters ,
|
|
|
|
including the pseudo-parameter
|
|
|
|
.Va all
|
|
|
|
which will show all available jail parameters.
|
|
|
|
A list of available parameters can be retrieved via
|
|
|
|
.Dq Nm sysctl Fl d Va security.jail.param .
|
|
|
|
See
|
|
|
|
.Xr jail 8
|
|
|
|
for a description of some core parameters.
|
MFp4:
Bring in updated jail support from bz_jail branch.
This enhances the current jail implementation to permit multiple
addresses per jail. In addtion to IPv4, IPv6 is supported as well.
Due to updated checks it is even possible to have jails without
an IP address at all, which basically gives one a chroot with
restricted process view, no networking,..
SCTP support was updated and supports IPv6 in jails as well.
Cpuset support permits jails to be bound to specific processor
sets after creation.
Jails can have an unrestricted (no duplicate protection, etc.) name
in addition to the hostname. The jail name cannot be changed from
within a jail and is considered to be used for management purposes
or as audit-token in the future.
DDB 'show jails' command was added to aid debugging.
Proper compat support permits 32bit jail binaries to be used on 64bit
systems to manage jails. Also backward compatibility was preserved where
possible: for jail v1 syscalls, as well as with user space management
utilities.
Both jail as well as prison version were updated for the new features.
A gap was intentionally left as the intermediate versions had been
used by various patches floating around the last years.
Bump __FreeBSD_version for the afore mentioned and in kernel changes.
Special thanks to:
- Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches
and Olivier Houchard (cognet) for initial single-IPv6 patches.
- Jeff Roberson (jeff) and Randall Stewart (rrs) for their
help, ideas and review on cpuset and SCTP support.
- Robert Watson (rwatson) for lots and lots of help, discussions,
suggestions and review of most of the patch at various stages.
- John Baldwin (jhb) for his help.
- Simon L. Nielsen (simon) as early adopter testing changes
on cluster machines as well as all the testers and people
who provided feedback the last months on freebsd-jail and
other channels.
- My employer, CK Software GmbH, for the support so I could work on this.
Reviewed by: (see above)
MFC after: 3 months (this is just so that I get the mail)
X-MFC Before: 7.2-RELEASE if possible
2008-11-29 14:32:14 +00:00
|
|
|
.Pp
|
2009-05-27 14:30:26 +00:00
|
|
|
If no
|
|
|
|
.Ar parameters
|
2009-07-08 15:57:22 +00:00
|
|
|
or any of the options
|
|
|
|
.Fl hns
|
2009-05-27 14:30:26 +00:00
|
|
|
are given, the following four columns will be printed:
|
|
|
|
jail identifier (jid), IP address (ip4.addr), hostname (host.hostname),
|
|
|
|
and path (path).
|
MFp4:
Bring in updated jail support from bz_jail branch.
This enhances the current jail implementation to permit multiple
addresses per jail. In addtion to IPv4, IPv6 is supported as well.
Due to updated checks it is even possible to have jails without
an IP address at all, which basically gives one a chroot with
restricted process view, no networking,..
SCTP support was updated and supports IPv6 in jails as well.
Cpuset support permits jails to be bound to specific processor
sets after creation.
Jails can have an unrestricted (no duplicate protection, etc.) name
in addition to the hostname. The jail name cannot be changed from
within a jail and is considered to be used for management purposes
or as audit-token in the future.
DDB 'show jails' command was added to aid debugging.
Proper compat support permits 32bit jail binaries to be used on 64bit
systems to manage jails. Also backward compatibility was preserved where
possible: for jail v1 syscalls, as well as with user space management
utilities.
Both jail as well as prison version were updated for the new features.
A gap was intentionally left as the intermediate versions had been
used by various patches floating around the last years.
Bump __FreeBSD_version for the afore mentioned and in kernel changes.
Special thanks to:
- Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches
and Olivier Houchard (cognet) for initial single-IPv6 patches.
- Jeff Roberson (jeff) and Randall Stewart (rrs) for their
help, ideas and review on cpuset and SCTP support.
- Robert Watson (rwatson) for lots and lots of help, discussions,
suggestions and review of most of the patch at various stages.
- John Baldwin (jhb) for his help.
- Simon L. Nielsen (simon) as early adopter testing changes
on cluster machines as well as all the testers and people
who provided feedback the last months on freebsd-jail and
other channels.
- My employer, CK Software GmbH, for the support so I could work on this.
Reviewed by: (see above)
MFC after: 3 months (this is just so that I get the mail)
X-MFC Before: 7.2-RELEASE if possible
2008-11-29 14:32:14 +00:00
|
|
|
.Pp
|
2009-05-27 14:30:26 +00:00
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl d
|
|
|
|
List
|
|
|
|
.Va dying
|
|
|
|
as well as active jails.
|
|
|
|
.It Fl h
|
|
|
|
Print a header line containing the parameters listed.
|
2009-07-08 15:57:22 +00:00
|
|
|
If no parameters are given on the command line,
|
|
|
|
.Va all
|
|
|
|
is assumed.
|
2013-05-17 08:48:16 +00:00
|
|
|
.It Fl N
|
|
|
|
In the standard display mode, print each jail's name instead of its
|
|
|
|
numeric ID.
|
|
|
|
If the jail does not have a name, the numeric ID is printed instead.
|
2009-05-27 14:30:26 +00:00
|
|
|
.It Fl n
|
|
|
|
Print parameters in
|
|
|
|
.Dq name=value
|
|
|
|
format, where each parameter is preceded by its name.
|
2009-07-08 15:57:22 +00:00
|
|
|
If no parameters are given on the command line,
|
|
|
|
.Va all
|
|
|
|
is assumed.
|
2009-05-27 14:30:26 +00:00
|
|
|
.It Fl q
|
|
|
|
Put quotes around parameters if they contain spaces or quotes, or are
|
|
|
|
the empty string.
|
2009-07-08 15:57:22 +00:00
|
|
|
.It Fl s
|
2009-05-27 14:30:26 +00:00
|
|
|
Print parameters suitable for passing to
|
|
|
|
.Xr jail 8 ,
|
|
|
|
skipping read-only and unused parameters.
|
|
|
|
Implies
|
|
|
|
.Fl nq .
|
|
|
|
.It Fl v
|
|
|
|
Print a multiple-line summary per jail, with the following parameters:
|
|
|
|
jail identifier (jid), hostname (host.hostname), path (path),
|
|
|
|
jail name (name), jail state (dying), cpuset ID (cpuset),
|
|
|
|
IP address(es) (ip4.addr and ip6.addr).
|
|
|
|
.It Fl j Ar jail
|
|
|
|
The jid or name of the
|
|
|
|
.Ar jail
|
|
|
|
to list.
|
|
|
|
Without this option, all active jails will be listed.
|
MFp4:
Bring in updated jail support from bz_jail branch.
This enhances the current jail implementation to permit multiple
addresses per jail. In addtion to IPv4, IPv6 is supported as well.
Due to updated checks it is even possible to have jails without
an IP address at all, which basically gives one a chroot with
restricted process view, no networking,..
SCTP support was updated and supports IPv6 in jails as well.
Cpuset support permits jails to be bound to specific processor
sets after creation.
Jails can have an unrestricted (no duplicate protection, etc.) name
in addition to the hostname. The jail name cannot be changed from
within a jail and is considered to be used for management purposes
or as audit-token in the future.
DDB 'show jails' command was added to aid debugging.
Proper compat support permits 32bit jail binaries to be used on 64bit
systems to manage jails. Also backward compatibility was preserved where
possible: for jail v1 syscalls, as well as with user space management
utilities.
Both jail as well as prison version were updated for the new features.
A gap was intentionally left as the intermediate versions had been
used by various patches floating around the last years.
Bump __FreeBSD_version for the afore mentioned and in kernel changes.
Special thanks to:
- Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches
and Olivier Houchard (cognet) for initial single-IPv6 patches.
- Jeff Roberson (jeff) and Randall Stewart (rrs) for their
help, ideas and review on cpuset and SCTP support.
- Robert Watson (rwatson) for lots and lots of help, discussions,
suggestions and review of most of the patch at various stages.
- John Baldwin (jhb) for his help.
- Simon L. Nielsen (simon) as early adopter testing changes
on cluster machines as well as all the testers and people
who provided feedback the last months on freebsd-jail and
other channels.
- My employer, CK Software GmbH, for the support so I could work on this.
Reviewed by: (see above)
MFC after: 3 months (this is just so that I get the mail)
X-MFC Before: 7.2-RELEASE if possible
2008-11-29 14:32:14 +00:00
|
|
|
.El
|
2003-04-09 03:04:12 +00:00
|
|
|
.Sh SEE ALSO
|
2009-05-27 14:30:26 +00:00
|
|
|
.Xr jail_get 2 ,
|
2003-04-09 03:04:12 +00:00
|
|
|
.Xr jail 8 ,
|
|
|
|
.Xr jexec 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility was added in
|
|
|
|
.Fx 5.1 .
|
2009-05-27 14:30:26 +00:00
|
|
|
Extensible jail parameters were introduced in
|
|
|
|
.Fx 8.0 .
|