GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CR_CANSEEOTHERUIDS(9) FreeBSD Kernel Developer's Manual CR_CANSEEOTHERUIDS(9)

cr_canseeotheruidsdetermine if subjects may see entities with differing user ID

int
cr_canseeotheruids(struct ucred *u1, struct ucred *u2);

This function is internal. Its functionality is integrated into the function cr_bsd_visible(9), which should be called instead.

This function checks if a subject associated to credentials u1 is denied seeing a subject or object associated to credentials u2 by a policy that requires both credentials to have the same real user ID.

This policy is active if and only if the sysctl(8) variable security.bsd.see_other_uids is set to zero.

As usual, the superuser (effective user ID 0) is exempt from this policy 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)).

The cr_canseeotheruids() function returns 0 if the policy is disabled, both credentials have the same real user ID, or if u1 has privilege exempting it from the policy. Otherwise, it returns ESRCH.

cr_bsd_visible(9), priv_check_cred(9)

August 18, 2023 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.