AccessVectorComputer

Trait AccessVectorComputer 

Source
pub trait AccessVectorComputer {
    // Required method
    fn kernel_permissions_to_access_vector<P: ClassPermission + Into<KernelPermission> + Clone + 'static>(
        &self,
        permissions: &[P],
    ) -> Option<AccessVector>;
}
Expand description

An owner of policy information that can translate [crate::Permission] values into AccessVector values that are consistent with the owned policy.

Required Methods§

Source

fn kernel_permissions_to_access_vector<P: ClassPermission + Into<KernelPermission> + Clone + 'static>( &self, permissions: &[P], ) -> Option<AccessVector>

Returns an AccessVector containing the supplied kernel permissions.

The loaded policy’s “handle unknown” configuration determines how permissions entries not explicitly defined by the policy are handled. Allow-unknown will result in unknown permissions being ignored, while deny-unknown will cause None to be returned if one or more permissions are unknown.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§