landlock

Trait Access

source
pub trait Access: PrivateAccess {
    // Required method
    fn from_all(abi: ABI) -> BitFlags<Self>;
}

Required Methods§

source

fn from_all(abi: ABI) -> BitFlags<Self>

Gets the access rights defined by a specific ABI.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Access for AccessFs

source§

impl Access for AccessNet

§Warning

If ABI <= ABI::V3, AccessNet::from_all() returns an empty BitFlags<AccessNet>, which makes Ruleset::handle_access(AccessNet::from_all(ABI::V3)) return an error.