Struct selinux::permission_check::PermissionCheck
source · pub struct PermissionCheck<'a> { /* private fields */ }
Expand description
Implements the has_permission()
API, based on supplied Query
and AccessVectorComputer
implementations.
Implementations§
source§impl<'a> PermissionCheck<'a>
impl<'a> PermissionCheck<'a>
sourcepub fn has_permission<P: ClassPermission + Into<Permission> + Clone + 'static>(
&self,
source_sid: SecurityId,
target_sid: SecurityId,
permission: P,
) -> PermissionCheckResult
pub fn has_permission<P: ClassPermission + Into<Permission> + Clone + 'static>( &self, source_sid: SecurityId, target_sid: SecurityId, permission: P, ) -> PermissionCheckResult
Returns whether the source_sid
has the specified permission
on target_sid
.
The result indicates both whether permission
is permit
ted, and whether the caller
should audit
log the query.
pub fn security_server(&self) -> &SecurityServer
Auto Trait Implementations§
impl<'a> Freeze for PermissionCheck<'a>
impl<'a> !RefUnwindSafe for PermissionCheck<'a>
impl<'a> Send for PermissionCheck<'a>
impl<'a> Sync for PermissionCheck<'a>
impl<'a> Unpin for PermissionCheck<'a>
impl<'a> !UnwindSafe for PermissionCheck<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more