#[repr(u8)]pub enum FilePermission {
Show 20 variants
Append = 0,
AuditAccess = 1,
Create = 2,
GetAttr = 3,
Ioctl = 4,
Lock = 5,
Map = 6,
Read = 7,
RelabelFrom = 8,
RelabelTo = 9,
SetAttr = 10,
Write = 11,
Execute = 12,
Link = 13,
MountOn = 14,
Open = 15,
Rename = 16,
Unlink = 17,
Entrypoint = 18,
ExecuteNoTrans = 19,
}Expand description
Allow callers to use the kernel class & permission definitions.
Variants§
Append = 0
Permission to append to a file or socket.
AuditAccess = 1
Pseudo-permission used in dontaudit access-rules to allow access checks to be made
between specific sources & targets without generating audit logs.
Create = 2
Permission to create a file or socket.
GetAttr = 3
Permission to query attributes, including uid, gid and extended attributes.
Ioctl = 4
Permission to execute ioctls on the file or socket.
Lock = 5
Permission to set and unset file or socket locks.
Map = 6
Permission to map a file.
Read = 7
Permission to read content from a file or socket, as well as reading or following links.
RelabelFrom = 8
Permission checked against the existing label when updating a node’s security label.
RelabelTo = 9
Permission checked against the new label when updating a node’s security label.
SetAttr = 10
Permission to modify attributes, including uid, gid and extended attributes.
Write = 11
Permission to write contents to the file or socket.
Execute = 12
Permission to execute a file with domain transition.
Link = 13
Permissions to create hard link.
MountOn = 14
Permission to use as mount point; only useful for directories and files.
Open = 15
Permission to open a file.
Rename = 16
Permission to rename a file.
Unlink = 17
Permission to delete a file or remove a hard link.
Entrypoint = 18
Permission to use a file as an entry point into the new domain on transition.
ExecuteNoTrans = 19
Permission to use a file as an entry point to the calling domain without performing a transition.
Implementations§
Trait Implementations§
Source§impl ClassPermission for FilePermission
impl ClassPermission for FilePermission
Source§impl Clone for FilePermission
impl Clone for FilePermission
Source§fn clone(&self) -> FilePermission
fn clone(&self) -> FilePermission
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilePermission
impl Debug for FilePermission
Source§impl From<CommonFilePermission> for FilePermission
impl From<CommonFilePermission> for FilePermission
Source§fn from(other: CommonFilePermission) -> Self
fn from(other: CommonFilePermission) -> Self
Source§impl From<FilePermission> for KernelPermission
impl From<FilePermission> for KernelPermission
Source§fn from(v: FilePermission) -> Self
fn from(v: FilePermission) -> Self
Source§impl Hash for FilePermission
impl Hash for FilePermission
Source§impl PartialEq for FilePermission
impl PartialEq for FilePermission
Source§impl VariantArray for FilePermission
impl VariantArray for FilePermission
impl Copy for FilePermission
impl Eq for FilePermission
impl StructuralPartialEq for FilePermission
Auto Trait Implementations§
impl Freeze for FilePermission
impl RefUnwindSafe for FilePermission
impl Send for FilePermission
impl Sync for FilePermission
impl Unpin for FilePermission
impl UnsafeUnpin for FilePermission
impl UnwindSafe for FilePermission
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,
§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
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>
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>
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