prison_check(9)

prison_check9

Determine if two credentials belong to the same jail

Usage

#include <sys/jail.h>

int

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

Overview

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.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.