illumos-priv 0.2.0

Crate providing an interface to illumos's PRIVILEGES(5)
Documentation
  • Coverage
  • 100%
    110 out of 110 items documented1 out of 15 items with examples
  • Size
  • Source code size: 60.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 519.9 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • TritonDataCenter/rust-illumos-priv
    3 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • papertigers

rust-illumos-priv

Adjust illumos privilege sets.

illumos implements a set of privileges that provide fine-grained control over the actions of processes. The possession of a certain privilege allows a process to perform a specific set of restricted operations.

See PRIVILEGES(5) for a list of privileges and their descriptions, or take a look at this crates documentation.

Example

Dropping fork and exec privileges from a process running as root results in failure to fork-exec ls. Source for the below example can be found in examples/fork-exec.rs.

root - rustdev ~/src/rust-illumos-priv (git:master) # cargo run --example fork-exec
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/examples/fork-exec`
failed to fork/exec ls: PermissionDenied