*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: cr_cansee | Section: 9 | Source: FreeBSD | File: cr_cansee.9.gz
CR_CANSEE(9) FreeBSD Kernel Developer's Manual CR_CANSEE(9) NAME cr_cansee - determine visibility of objects given their user credentials SYNOPSIS #include <sys/proc.h> int cr_cansee(struct ucred *u1, struct ucred *u2); DESCRIPTION This function determines if a subject with credential u1 can see a subject or object associated to credential u2. Specific types of subjects may need to submit to additional or different restrictions. As an example, for processes, see p_cansee(9), which calls this function. The implementation relies on cr_bsd_visible(9) and consequently the sysctl(8) variables referenced in its manual page influence the result. RETURN VALUES This function returns zero if the subject with credential u1 can "see" the subject or object with credential u2, or ESRCH otherwise. ERRORS [ESRCH] The subject with credential u1 has been jailed and the subject or object with credential u2 does not belong to the same jail or one of its sub-jails, as determined by prison_check(9). [ESRCH] The MAC subsystem denied visibility. [ESRCH] cr_bsd_visible(9) denied visibility according to the BSD security policies in force. SEE ALSO cr_bsd_visible(9), mac(9), p_cansee(9), prison_check(9) FreeBSD 14.1-RELEASE-p8 August 18, 2023 FreeBSD 14.1-RELEASE-p8

Navigation Options