lucab / libsystemd-rs

A pure-Rust client library to work with systemd
https://crates.io/crates/libsystemd
Other
106 stars 19 forks source link

Method for extracting paths from Unix sockets #57

Open jabedude opened 4 years ago

jabedude commented 4 years ago

Socket activated services may need to verify the filesystem paths of systemd passed Unix file descriptors. Currently an application would need to call getsockname(2) directly to retrieve this information.

We should consider returning the PathBuf of a UDS, or providing a method to lazily retrieve it.