[][src]Crate capo

An interface to Linux capabilities(7).

Examples

Get capabilities of the current thread:

use capo::{Caps, caps::*};

let caps = Caps::get()?;
caps.effective.contains(SysAdmin);

Set capabilities of the current thread:

let mut caps = Caps::empty();
caps.effective.insert(SysAdmin | Syslog);
caps.permitted.insert(SysAdmin | Syslog);
caps.set()?;

Modules

caps

Structs

Ambient
Bounding
Caps
Error
Set

Enums

Cap