Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/jail.2
Show All 19 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 February 8, 2012 | .Dd January 25, 2021 | ||||
.Dt JAIL 2 | .Dt JAIL 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm jail , | .Nm jail , | ||||
.Nm jail_get , | .Nm jail_get , | ||||
.Nm jail_set , | .Nm jail_set , | ||||
.Nm jail_remove , | .Nm jail_remove , | ||||
.Nm jail_attach | .Nm jail_attach | ||||
▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | |||||
are set, a jail will be created if it does not yet exist, and modified if it | are set, a jail will be created if it does not yet exist, and modified if it | ||||
does exist. | does exist. | ||||
.It Dv JAIL_ATTACH | .It Dv JAIL_ATTACH | ||||
In addition to creating or modifying the jail, attach the current process to | In addition to creating or modifying the jail, attach the current process to | ||||
it, as with the | it, as with the | ||||
.Fn jail_attach | .Fn jail_attach | ||||
system call. | system call. | ||||
.It Dv JAIL_DYING | .It Dv JAIL_DYING | ||||
Allow setting a jail that is in the process of being removed. | This is deprecated and has no effect. | ||||
It used to allow setting a jail that is in the process of being removed. | |||||
Now such jails are always replaced when a new jail is created with the same | |||||
.Va jid | |||||
or | |||||
.Va name . | |||||
zlei: We previously have a bug [1] that prevent jail die immediately, actually the jail stuck at… | |||||
Done Inline ActionsIt's still useful - there's bound to be another such case. That's why the flag is still supported for jail_get(2). jamie: It's still useful - there's bound to be another such case. That's why the flag is still… | |||||
.El | .El | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn jail_get | .Fn jail_get | ||||
system call retrieves jail parameters, using the same name-value list as | system call retrieves jail parameters, using the same name-value list as | ||||
.Fn jail_set | .Fn jail_set | ||||
in the | in the | ||||
.Fa iov | .Fa iov | ||||
▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines |
We previously have a bug [1] that prevent jail die immediately, actually the jail stuck at dying state for quite a long time. The bug has been fixed now.
I guess maybe it is still useful for users to report such unusual state ? Or without it do we have simple mean to check / observe that unusual state ?