— determine visibility
of objects given their user credentials
, struct ucred
This function determines the visibility of objects in the kernel based on the
real user IDs in the credentials u1
associated with them.
The visibility of objects is influenced by the sysctl(8)
. If this variable
is non-zero then all objects in the kernel are visible to each other
irrespective of their user IDs. If this variable is zero then the object with
is visible to the object with credentials
if either u1
is the super-user
credential, or if u1
the same real user ID.
- Must be non-zero if objects with unprivileged credentials
are to be able to see each other.
This function returns zero if the object with credential
can “see” the object with credential