pub enum DirPermission {
AddName,
RemoveDir,
RemoveName,
Reparent,
Search,
Common(CommonFilePermission),
}
Expand description
A well-known “dir” class permission in SELinux policy that has a particular meaning in policy enforcement hooks.
Variants§
AddName
Permission to add a file to the directory.
RemoveDir
Permission to remove a directory.
RemoveName
Permission to remove an entry from a directory.
Reparent
Permission to change parent directory.
Search
Search access to the directory.
Common(CommonFilePermission)
Implementations§
Source§impl DirPermission
impl DirPermission
pub fn all_variants() -> Vec<Self>
Trait Implementations§
Source§impl ClassPermission for DirPermission
impl ClassPermission for DirPermission
fn class(&self) -> ObjectClass
Source§impl Clone for DirPermission
impl Clone for DirPermission
Source§fn clone(&self) -> DirPermission
fn clone(&self) -> DirPermission
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 DirPermission
impl Debug for DirPermission
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 Hash for DirPermission
impl Hash for DirPermission
Source§impl PartialEq for DirPermission
impl PartialEq for DirPermission
impl Eq for DirPermission
impl StructuralPartialEq for DirPermission
Auto Trait Implementations§
impl Freeze for DirPermission
impl RefUnwindSafe for DirPermission
impl Send for DirPermission
impl Sync for DirPermission
impl Unpin for DirPermission
impl UnwindSafe for DirPermission
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
)