Crates.io | ucred |
lib.rs | ucred |
version | 1.1.0 |
source | src |
created_at | 2019-07-19 09:49:17.929711 |
updated_at | 2024-03-09 01:24:59.449692 |
description | safe access to ucred(3C), user credentials for processes |
homepage | |
repository | https://github.com/illumos/ucred-rs |
max_upload_size | |
id | 150095 |
size | 27,937 |
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.
Unless otherwise noted, all components are dual-licenced under either the MIT Licence or the Apache License Version 2.0.