tail head cat sleep
QR code linking to this page

Manual Pages  — PRISON_CHECK

NAME

prison_check – determine if subjects may see entities according to jail restrictions

CONTENTS

SYNOPSIS

#include <sys/jail.h>

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

DESCRIPTION

This function determines if a subject with credentials cred1 is denied access to subjects or objects with credentials cred2 according to the policy that a subject can see subjects or objects in its own jail or any sub-jail of it.

RETURN VALUES

The prison_check() function returns ESRCH if cred2 is not in the same jail or a sub-jail of that of cred1. In all other cases, prison_check() returns zero.

SEE ALSO

jail(2)

PRISON_CHECK (9) August 18, 2023

tail head cat sleep
QR code linking to this page


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

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook