jail 0.0.1

FreeBSD jail library
docs.rs failed to build jail-0.0.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: jail-0.0.0-alpha3

libjail-rs

Crates.io Travis Docs: x86_64-unknown-freebsd Docs: i686-unknown-freebsd

libjail-rs aims to be a rust implementation of the FreeBSD jail(3) library. While feature parity is a goal, a one-to-one implementation of all functions in jail(3) is not.

Project status

This library is still under heavy development

Usage

Execute a command in a jail:

use std::process::Command;
use jail::jail_getid;
use jail::process::Jailed;

let output = Command::new("hostname")
             .jail(jail_getid("testjail").unwrap())
             .output()
             .expect("Failed to execute command");

println!("output: {:?}", output.stdout);