#sandbox #fd #passing #privsep #imsg

macro privsep-derive

Privilege Separation for Rust

5 releases

0.0.1 Sep 17, 2021
0.0.1-test.7 Sep 11, 2021
0.0.1-test.6 May 17, 2021
0.0.1-test.5 Apr 18, 2021
0.0.1-test.4 Mar 31, 2021

#31 in #fd

27 downloads per month
Used in privsep

ISC license

14KB
266 lines

Privilege Separation for Rust

Crates.IO docs.rs Build Status License

This crate is experimental and WIP.

Minimum Rust version

This crate uses const generics and requires Rust 1.51 or later.

TODO

Many things, including:

  • Improve documentation and rustdoc.
  • process:
    • Allow to spawn multiple processes of a same child (not really needed with tokio).
    • Improve naming of structs.
    • Add support for OS-specific sandboxing (e.g. OpenBSD pledge)
    • Add support for running privileged operations in a child before privdrop.
    • Help to get ancillary into stable.
    • Add suppport for nightly.
  • log:
    • Improve async logging and lazy initialization of log messages.
  • Write more tests to improve code coverage.

Licensed under an OpenBSD-ISC-style license, see LICENSE for details.

Dependencies

~1.5MB
~36K SLoC