Enum selinux::Permission
source · pub enum Permission {
Dir(DirPermission),
File(FilePermission),
FileSystem(FileSystemPermission),
Process(ProcessPermission),
Security(SecurityPermission),
}
Expand description
A well-known (class, permission)
pair in SELinux policy that has a particular meaning in
policy enforcement hooks.
Variants§
Dir(DirPermission)
Permissions for the well-known SELinux “dir” object class.
File(FilePermission)
Permissions for the well-known SELinux “file” object class.
FileSystem(FileSystemPermission)
Permissions for the well-known SELinux “filesystem” object class.
Process(ProcessPermission)
Permissions for the well-known SELinux “process” object class.
Security(SecurityPermission)
Permissions for access to parts of the “selinuxfs” used to administer and query SELinux.
Implementations§
source§impl Permission
impl Permission
Trait Implementations§
source§impl ClassPermission for Permission
impl ClassPermission for Permission
fn class(&self) -> ObjectClass
source§impl Clone for Permission
impl Clone for Permission
source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Permission
impl Debug for Permission
source§impl From<DirPermission> for Permission
impl From<DirPermission> for Permission
source§fn from(v: DirPermission) -> Self
fn from(v: DirPermission) -> Self
Converts to this type from the input type.
source§impl From<FilePermission> for Permission
impl From<FilePermission> for Permission
source§fn from(v: FilePermission) -> Self
fn from(v: FilePermission) -> Self
Converts to this type from the input type.
source§impl From<FileSystemPermission> for Permission
impl From<FileSystemPermission> for Permission
source§fn from(v: FileSystemPermission) -> Self
fn from(v: FileSystemPermission) -> Self
Converts to this type from the input type.
source§impl From<Permission> for AbstractPermission
impl From<Permission> for AbstractPermission
source§fn from(permission: Permission) -> Self
fn from(permission: Permission) -> Self
Converts to this type from the input type.
source§impl From<ProcessPermission> for Permission
impl From<ProcessPermission> for Permission
source§fn from(v: ProcessPermission) -> Self
fn from(v: ProcessPermission) -> Self
Converts to this type from the input type.
source§impl From<SecurityPermission> for Permission
impl From<SecurityPermission> for Permission
source§fn from(v: SecurityPermission) -> Self
fn from(v: SecurityPermission) -> Self
Converts to this type from the input type.
source§impl Hash for Permission
impl Hash for Permission
source§impl PartialEq for Permission
impl PartialEq for Permission
source§fn eq(&self, other: &Permission) -> bool
fn eq(&self, other: &Permission) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Permission
impl StructuralPartialEq for Permission
Auto Trait Implementations§
impl Freeze for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)