prison_check9
Determine if subjects may see entities according to jail restrictions
Usage
#include <sys/jail.h>
int
prison_check(struct ucred *cred1, struct ucred *cred2);
Overview
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.
Releases
52 releases since FreeBSD 5.3-RELEASE; the text changed 32 times.