Trait selinux::policy::AccessVectorComputer

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

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

Required Methods§

source

fn access_vector_from_permissions<P: ClassPermission + Into<Permission> + 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.

Object Safety§

This trait is not object safe.

Implementors§