[go: up one dir, main page]

caps 0.3.1

A pure-Rust library to work with Linux capabilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate caps;

use caps::runtime;

fn main() {
    let amb_set = runtime::ambient_set_supported().is_ok();
    println!("Ambient set supported: {}", amb_set);

    let all = caps::all();
    let supported = runtime::all_supported();
    let missing = all.difference(&supported);
    println!("Unsupported new capabilities: {:?}", missing);
}