use anyhow::Result; use capo::{Ambient, Caps, caps::*}; fn main() -> Result<()> { let mut caps = Caps::get()?; caps.inheritable.insert(Lease); caps.set()?; assert!(Ambient::is_set(Lease)? == false); Ambient::raise(Lease)?; assert!(Ambient::is_set(Lease)? == true); Ok(()) }