summaryrefslogtreecommitdiff
path: root/src/injail.8
blob: 26345a6cbcc67245768706aba805aa0914213b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.Dd May 28, 2002
.Dt INJAIL 8
.Os
.Sh NAME
.Nm injail
.Nd determine if a process is running in a jail
.Sh SYNOPSIS
.Nm
.Sh DESCRIPTION
The
.Nm
utility returns a result which indicates the jailed status of
the current process environment.
.Sh DIAGNOSTICS
The
.Nm
utility exits with one of the following values:
.Bl -tag -width indent -compact
.It 0
the process is running in a jail.
.It 1
the process is not running in a jail.
.It 2
an error prevented determining if the process is running in a jail.
.El
.Sh BUGS
.Nm
uses kvm_getprocs(3) to determine process status. Anything which 
could cause a failure in either kvm_open(3) or kvm_getprocs(3) can
cause this to fail as well. There aught to be a cleaner way.
.Sh AUTHOR
 James E. Quick <jq@quick.com>
.Sh SEE ALSO
.Xr jailer 8 ,
.Xr jail 8 ,
.Xr kvm 3