tail head cat sleep
QR code linking to this page

Manual Pages  — PRISON_CHECK

NAME

prison_check – determine if two credentials belong to the same jail

CONTENTS

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)

PRISON_CHECK (9) December 11, 2003

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.