Trait selinux_policy::AccessVectorComputer
source · pub trait AccessVectorComputer {
// Required methods
fn access_vector_from_permission<P: ClassPermission + Into<Permission> + 'static>(
&self,
permission: P
) -> AccessVector;
fn access_vector_from_permissions<'a, P: ClassPermission + Into<Permission> + 'static, PI: IntoIterator<Item = P>>(
&self,
permissions: PI
) -> 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§
sourcefn access_vector_from_permission<P: ClassPermission + Into<Permission> + 'static>(
&self,
permission: P
) -> AccessVector
fn access_vector_from_permission<P: ClassPermission + Into<Permission> + 'static>( &self, permission: P ) -> AccessVector
Returns an AccessVector
with a single bit set that corresponds to permission
.
sourcefn access_vector_from_permissions<'a, P: ClassPermission + Into<Permission> + 'static, PI: IntoIterator<Item = P>>(
&self,
permissions: PI
) -> AccessVector
fn access_vector_from_permissions<'a, P: ClassPermission + Into<Permission> + 'static, PI: IntoIterator<Item = P>>( &self, permissions: PI ) -> AccessVector
Computes an AccessVector
where the only bits set are those that correspond to
all permissions
. This operation fails if permissions
contain permissions that refer to
different object classes because an access vector specifies permission bits associated with
one specific object class.
Object Safety§
This trait is not object safe.