CR_CANSEE(9)
π CR_CANSEE(9) π
okay bestie, we're in the Kernel Developer's Manual now, and this one is called cr_cansee β it's giving "can you even see me tho" energy and honestly? iconic. π¦
β¨ NAME β¨
cr_cansee β determine visibility of objects given their user credentials π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/ucred.h>
int
cr_cansee(struct ucred *u1, struct ucred *u2);
π DESCRIPTION π
so basically this function decides the visibility of objects in the kernel based on the real user IDs and group IDs sitting inside the credentials u1 and u2 that are associated with those objects. it's a whole vibe check for credentials, no cap. π«Ά
and the visibility of objects is influenced by the sysctl(8) variables security.bsd.see_other_gids and security.bsd.see_other_uids, exactly as described in cr_seeothergids(9) and cr_seeotheruids(9) respectively. so like, if you wanna know the tea, those two are where it's at. β¨
π RETURN VALUES π
this function returns zero if the object with credential u1 can "see" the object with credential u2, or ESRCH otherwise. simple as that, periodt. π
π₯ ERRORS π₯
[ESRCH]β the object with credentialu1cannot "see" the object with credentialu2. it's giving blocked. π[ESRCH]β the object with credentialu1has been jailed and the object with credentialu2does not belong to the same jail asu1. different jail, different β¨worldβ¨.[ESRCH]β the MAC subsystem denied visibility. not us, not you, it's the MAC subsystem's decision bestie π
π SEE ALSO π
cr_seeothergids(9), cr_seeotheruids(9), mac(9), p_cansee(9)
and that's the whole page, bestie!! π this one came to you from Debian, dated November 19, 2006 β yeah it's a lil vintage, but vintage is just another word for classic and classic is iconic. π stay visible, stay unjailed, mwah π«Άβ¨π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2006 Ceri Davies <ceri@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms