3 stable releases
1.1.0 | Mar 9, 2024 |
---|---|
1.0.1 | Mar 8, 2024 |
0.2.0 |
|
0.0.1 |
|
#185 in Authentication
128 downloads per month
15KB
236 lines
ucred-rs
The ucred crate provides safe access to ucred(3C) objects and their associated functions; e.g., getpeerucred(3C) and door_ucred(3C). This facility allows a program running on an illumos system to obtain credential information from the process on the far end of a local socket, or a door connection, or by providing an explicit process ID.
The crate also provides convenience routines for mapping user IDs and group IDs to user and group names using the local passwd(5) and group(5) databases. Note that (as mentioned in the documentation) if a door or a socket terminates in a zone other than the current zone, these mappings may not be correct. Each zone has its own name service databases and configuration; synchronising those databases with one another is left to site-specific policies and systems.
Licence
Unless otherwise noted, all components are dual-licenced under either the MIT Licence or the Apache License Version 2.0.
Dependencies
~44KB