prison_check(9) linux man page | unix.com

Man Page: prison_check

Operating Environment: linux

Section: 9

PRISON_CHECK(9) 					   BSD 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) BSD
December 11, 2003 BSD
Related Man Pages
cr_cansee(9) - debian
jls(8) - freebsd
vfs_set(9) - freebsd
p_candebug(9) - freebsd
cr_cansee(9) - linux
Similar Topics in the Unix Linux Community
Featured Books and Articles by Active Forum Members
Please Donate to the Red Cross for Earthquake and Tsunami Relief in Japan
Scripts without shebang
UNIX.com End of Year (EOY) Report (2019)