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§
Sourcefn access_vector_from_permissions<P: ClassPermission + Into<Permission> + Clone + 'static>(
&self,
permissions: &[P],
) -> Option<AccessVector>
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.
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.