priv_sep
priv_sep is a library that uses the system's libc to perform privilege separation and privilege reduction.
priv_sep in action for OpenBSD
use Infallible;
use ;
use ;
use TcpListener;
async
priv_sep in action for Unix-like OSes
use Infallible;
use ;
use ;
use TcpListener;
async
Minimum Supported Rust Version (MSRV)
This will frequently be updated to be the same as stable. Specifically, any time stable is updated and that update has "useful" features or compilation no longer succeeds (e.g., due to new compiler lints), then MSRV will be updated.
MSRV changes will correspond to a SemVer minor version bump.
SemVer Policy
- All on-by-default features of this library are covered by SemVer
- MSRV is considered exempt from SemVer as noted above
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Before any PR is sent, cargo clippy and cargo t should be run. Additionally
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features should be run to ensure documentation can be built.
Status
This package will be actively maintained to stay in-sync with the latest version of OpenBSD.
The crate is only tested on the x86_64-unknown-openbsd and x86_64-unknown-linux targets. While OpenBSD supports
both the most recent -release/-stable release as well as the previous version, only the most recent version will
be supported by this library. If using -stable, it may be necessary to build the
rust port from -current.