pub enum FileClass {
AnonFsNode = 0,
Block = 2,
Character = 6,
Dir = 7,
Fifo = 9,
File = 10,
Link = 14,
MemFdFile = 15,
SockFile = 43,
}Expand description
Allow callers to use the kernel class & permission definitions. A well-known file-like class in SELinux policy that has a particular meaning in policy enforcement hooks.
Variants§
AnonFsNode = 0
The SELinux “anon_inode” object class.
Block = 2
The SELinux “blk_file” object class.
Character = 6
The SELinux “chr_file” object class.
Dir = 7
The SELinux “dir” object class.
Fifo = 9
The SELinux “fifo_file” object class.
File = 10
The SELinux “file” object class.
Link = 14
The SELinux “lnk_file” object class.
MemFdFile = 15
The SELinux “memfd_file” object class.
SockFile = 43
The SELinux “sock_file” object class.
Trait Implementations§
Source§impl ForClass<FileClass> for CommonFilePermission
impl ForClass<FileClass> for CommonFilePermission
Source§fn for_class(&self, class: FileClass) -> KernelPermission
fn for_class(&self, class: FileClass) -> KernelPermission
Returns the class-affine KernelPermission value corresponding to this common permission.
This is used to allow hooks to resolve e.g. common “read” permission access based on the
“allow” rules for the correct target object class.
Source§impl From<FileClass> for FsNodeClass
impl From<FileClass> for FsNodeClass
Source§impl From<FileClass> for KernelClass
impl From<FileClass> for KernelClass
impl Copy for FileClass
impl Eq for FileClass
impl StructuralPartialEq for FileClass
Auto Trait Implementations§
impl Freeze for FileClass
impl RefUnwindSafe for FileClass
impl Send for FileClass
impl Sync for FileClass
impl Unpin for FileClass
impl UnsafeUnpin for FileClass
impl UnwindSafe for FileClass
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more