File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 25
25
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
26
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
.\"
28
- .Dd December 11, 2003
28
+ .Dd August 18, 2023
29
29
.Dt PRISON_CHECK 9
30
30
.Os
31
31
.Sh NAME
32
32
.Nm prison_check
33
- .Nd determine if two credentials belong to the same jail
33
+ .Nd determine if subjects may see entities according to jail restrictions
34
34
.Sh SYNOPSIS
35
35
.In sys/jail.h
36
36
.Ft int
37
37
.Fn prison_check " struct ucred *cred1" " struct ucred *cred2"
38
38
.Sh DESCRIPTION
39
- This function can be used to determine if the two credentials
39
+ This function determines if a subject with credentials
40
40
.Fa cred1
41
- and
41
+ is denied access to subjects or objects with credentials
42
42
.Fa cred2
43
- belong to the same jail.
43
+ according to the policy that a subject can see subjects or objects in its own
44
+ jail or any sub-jail of it.
44
45
.Sh RETURN VALUES
45
46
The
46
47
.Fn prison_check
47
48
function
48
49
returns
49
50
.Er ESRCH
50
51
if
51
- .Fa cred1
52
- has been jailed, and
53
- .Fa cred1
54
- and
55
52
.Fa cred2
56
- do not belong to the same jail.
53
+ is not in the same jail or a sub-jail of that of
54
+ .Fa cred1 .
57
55
In all other cases,
58
56
.Fn prison_check
59
57
returns zero.
You can’t perform that action at this time.
0 commit comments