PRISON_CHECK(9)
π NAME π
okay so welcome to the PRISON_CHECK(9) page from the Kernel Developer's Manual, bestie π
this whole vibe is prison_check β determine if subjects may see entities according to jail restrictions β¨
β¨ SYNOPSIS β¨
here's the exact include + signature, no cap π
#include <sys/jail.h>
int
prison_check(struct ucred *cred1, struct ucred *cred2);
π¦ DESCRIPTION π¦
okay so prison_check() is basically the jail-visibility vibe check π₯ it determines if a subject with credentials cred1 is denied access to subjects or objects with credentials cred2 β all according to the policy that a subject can see subjects or objects in its own jail or any sub-jail of it π
πΈ RETURN VALUES πΈ
prison_check() returns ESRCH if cred2 is not in the same jail or a sub-jail of that of cred1 π that's the βnope, can't see itβ result, fr fr.
In all other cases, prison_check() returns zero π«Ά
π SEE ALSO π
jail(2)β go read this too, bestie π¦
okay that's the whole manual page, bestie π this one's from Debian and dated August 18, 2023 β periodt β¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2003 Joseph Koshy <jkoshy@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms