prison_check (9)
Leading comments
Copyright (c) 2003 Joseph Koshy <jkoshy@FreeBSD.org>
All rights reserved.
This program is free software.
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 fol...
(The comments found at the beginning of the groff file "man9/prison_check.9freebsd".)
NAME
prison_check
- determine if two credentials belong to the same jail
SYNOPSIS
In sys/jail.h
Ft int
Fn prison_check struct ucred *cred1 struct ucred *cred2
DESCRIPTION
This function can be used to determine if the two credentials
Fa cred1
and
Fa cred2
belong to the same jail.
RETURN VALUES
The
Fn prison_check
function
returns
Er ESRCH
if
Fa cred1
has been jailed, and
Fa cred1
and
Fa cred2
do not belong to the same jail.
In all other cases,
Fn prison_check
returns zero.
SEE ALSO
jail(2)