pub enum ObjectClass {
AnonFsNode,
Block,
Character,
Dir,
Fd,
Fifo,
File,
FileSystem,
Link,
Process,
Security,
Socket,
}
Expand description
A well-known class in SELinux policy that has a particular meaning in policy enforcement hooks.
Variants§
AnonFsNode
The SELinux “anon_inode” object class.
Block
The SELinux “blk_file” object class.
Character
The SELinux “chr_file” object class.
Dir
The SELinux “dir” object class.
Fd
The SELinux “fd” object class.
Fifo
The SELinux “fifo_file” object class.
File
The SELinux “file” object class.
FileSystem
The SELinux “filesystem” object class.
Link
The SELinux “lnk_file” object class.
Process
The SELinux “process” object class.
Security
The SELinux “security” object class.
Socket
The SELinux “sock_file” object class.
Implementations§
Source§impl ObjectClass
impl ObjectClass
pub fn all_variants() -> Vec<Self>
Trait Implementations§
Source§impl Clone for ObjectClass
impl Clone for ObjectClass
Source§fn clone(&self) -> ObjectClass
fn clone(&self) -> ObjectClass
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 ObjectClass
impl Debug for ObjectClass
Source§impl From<FileClass> for ObjectClass
impl From<FileClass> for ObjectClass
Source§impl From<ObjectClass> for AbstractObjectClass
impl From<ObjectClass> for AbstractObjectClass
Source§fn from(object_class: ObjectClass) -> Self
fn from(object_class: ObjectClass) -> Self
Converts to this type from the input type.
Source§impl Hash for ObjectClass
impl Hash for ObjectClass
Source§impl PartialEq for ObjectClass
impl PartialEq for ObjectClass
impl Copy for ObjectClass
impl Eq for ObjectClass
impl StructuralPartialEq for ObjectClass
Auto Trait Implementations§
impl Freeze for ObjectClass
impl RefUnwindSafe for ObjectClass
impl Send for ObjectClass
impl Sync for ObjectClass
impl Unpin for ObjectClass
impl UnwindSafe for ObjectClass
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)