Module user

Source
Available on target_family="unix" and non-iOS and non-Android and non-tvOS only.
Expand description

Code to inspect user db information on unix.

Modules§

serde_support 🔒 serde
Serde support for TrustedUser and TrustedGroup.

Structs§

TrustedUsersCache 🔒
Cache for the trusted uid/gid answers

Enums§

TrustedGroup
A group that we can be configured to trust.
TrustedUser
A user that we can be configured to trust.

Statics§

CACHE 🔒
Cached trusted id determinations

Functions§

cur_groups 🔒
Return a vector of the group ID values for every group to which we belong.
get_own_username 🔒
Find our username, if possible.
get_self_named_gid_impl 🔒
Obtain the gid of a group named after the current user
handle_pwd_error 🔒
Convert an io::Error representing a user/group handling failure into an Error

Type Aliases§

Id 🔒
uids and gids, convenient type alias