Skip site navigation (1)Skip section navigation (2)

FreeBSD Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
PRISON_CHECK(9)	       FreeBSD Kernel Developer's Manual       PRISON_CHECK(9)

NAME
     prison_check -- determine if two credentials belong to the	same jail

SYNOPSIS
     #include <sys/jail.h>

     int
     prison_check(struct ucred *cred1, struct ucred *cred2);

DESCRIPTION
     This function can be used to determine if the two credentials cred1 and
     cred2 belong to the same jail.

RETURN VALUES
     The prison_check()	function returns ESRCH if cred1	has been jailed, and
     cred1 and cred2 do	not belong to the same jail.  In all other cases,
     prison_check() returns zero.

SEE ALSO
     jail(2)

FreeBSD	10.1		       December	11, 2003		  FreeBSD 10.1

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO

Want to link to this manual page? Use this URL:
<http://www.freebsd.org/cgi/man.cgi?query=prison_check&sektion=9&manpath=FreeBSD+10.0-RELEASE>

home | help