pub enum Permission {
AnonFsNode(AnonFsNodePermission),
Block(BlockFilePermission),
Character(CharacterFilePermission),
Dir(DirPermission),
Fd(FdPermission),
Fifo(FifoFilePermission),
File(FilePermission),
FileSystem(FileSystemPermission),
Link(LinkFilePermission),
Process(ProcessPermission),
Security(SecurityPermission),
Socket(SocketPermission),
}
Expand description
A well-known (class, permission)
pair in SELinux policy that has a particular meaning in
policy enforcement hooks.
Variants§
AnonFsNode(AnonFsNodePermission)
Permissions for the well-known SELinux “anon_inode” file-like object class.
Block(BlockFilePermission)
Permissions for the well-known SELinux “blk_file” file-like object class.
Character(CharacterFilePermission)
Permissions for the well-known SELinux “chr_file” file-like object class.
Dir(DirPermission)
Permissions for the well-known SELinux “dir” file-like object class.
Fd(FdPermission)
Permissions for the well-known SELinux “fd” object class.
Fifo(FifoFilePermission)
Permissions for the well-known SELinux “fifo_file” file-like object class.
File(FilePermission)
Permissions for the well-known SELinux “file” object class.
FileSystem(FileSystemPermission)
Permissions for the well-known SELinux “filesystem” object class.
Link(LinkFilePermission)
Permissions for the well-known SELinux “lnk_file” file-like 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.
Socket(SocketPermission)
Permissions for the well-known SELinux “sock_file” file-like object class.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Permission
impl Debug for Permission
Source§impl From<AnonFsNodePermission> for Permission
impl From<AnonFsNodePermission> for Permission
Source§fn from(v: AnonFsNodePermission) -> Self
fn from(v: AnonFsNodePermission) -> Self
Source§impl From<BlockFilePermission> for Permission
impl From<BlockFilePermission> for Permission
Source§fn from(v: BlockFilePermission) -> Self
fn from(v: BlockFilePermission) -> Self
Source§impl From<CharacterFilePermission> for Permission
impl From<CharacterFilePermission> for Permission
Source§fn from(v: CharacterFilePermission) -> Self
fn from(v: CharacterFilePermission) -> Self
Source§impl From<DirPermission> for Permission
impl From<DirPermission> for Permission
Source§fn from(v: DirPermission) -> Self
fn from(v: DirPermission) -> Self
Source§impl From<FdPermission> for Permission
impl From<FdPermission> for Permission
Source§fn from(v: FdPermission) -> Self
fn from(v: FdPermission) -> Self
Source§impl From<FifoFilePermission> for Permission
impl From<FifoFilePermission> for Permission
Source§fn from(v: FifoFilePermission) -> Self
fn from(v: FifoFilePermission) -> Self
Source§impl From<FilePermission> for Permission
impl From<FilePermission> for Permission
Source§fn from(v: FilePermission) -> Self
fn from(v: FilePermission) -> Self
Source§impl From<FileSystemPermission> for Permission
impl From<FileSystemPermission> for Permission
Source§fn from(v: FileSystemPermission) -> Self
fn from(v: FileSystemPermission) -> Self
Source§impl From<LinkFilePermission> for Permission
impl From<LinkFilePermission> for Permission
Source§fn from(v: LinkFilePermission) -> Self
fn from(v: LinkFilePermission) -> Self
Source§impl From<Permission> for AbstractPermission
impl From<Permission> for AbstractPermission
Source§fn from(permission: Permission) -> Self
fn from(permission: Permission) -> Self
Source§impl From<ProcessPermission> for Permission
impl From<ProcessPermission> for Permission
Source§fn from(v: ProcessPermission) -> Self
fn from(v: ProcessPermission) -> Self
Source§impl From<SecurityPermission> for Permission
impl From<SecurityPermission> for Permission
Source§fn from(v: SecurityPermission) -> Self
fn from(v: SecurityPermission) -> Self
Source§impl From<SocketPermission> for Permission
impl From<SocketPermission> for Permission
Source§fn from(v: SocketPermission) -> Self
fn from(v: SocketPermission) -> Self
Source§impl Hash for Permission
impl Hash for Permission
Source§impl PartialEq for Permission
impl PartialEq for Permission
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)