![]() |
![]()
| ![]() |
![]()
NAME
SYNOPSIS
int
DESCRIPTIONThis function determines if a subject with credentials u1 is denied seeing an object or subject associated to credentials u2 by the following policies and associated sysctl(8) knobs:
As usual, the superuser (effective user ID 0) is exempt from any of these policies provided that the sysctl(8) variable security.bsd.suser_enabled is non-zero and no active MAC policy explicitly denies the exemption (see priv_check_cred(9)). This function is intended to be used as a helper to implement cr_cansee(9) and similar functions. RETURN VALUESThis function returns zero if a subject with credentials
u1 may see a subject or object with credentials
u2 by the active above-mentioned policies, or
ERRORS
SEE ALSOcr_cansee(9), cr_canseejailproc(9), cr_canseeothergids(9), cr_canseeotheruids(9), priv_check_cred(9) AUTHORSThis function and its manual page were written by Olivier Certner <olce.freebsd@certner.fr>.
|