capsicum
Contain the awesome!
Rust bindings for the FreeBSD capsicum framework for OS capability and sandboxing
Prerequisites
Note: This currently only compiles on FreeBSD
Getting Started
Get the code
git clone https://github.com/danlrobertson/capsicum-rs
cd capsicum-rs
cargo build
Writing code using capsicum-rs
Entering capability mode
use ;
use File;
use Read;
let mut ok_file = open.unwrap;
let mut s = Stringnew;
enter.expect;
assert!;
match create
match ok_file.read_to_string
Limit capability rights to files
use ;
use File;
use Read;
let x = ;
let mut ok_file = open.unwrap;
let mut s = Stringnew;
let mut builder = new;
if x
let rights = builder.finalize.unwrap;
rights.limit.unwrap;
match ok_file.read_to_string