pub enum SecurityPermission {
CheckContext,
ComputeAv,
ComputeCreate,
LoadPolicy,
SetBool,
SetCheckReqProt,
SetEnforce,
}
Expand description
A well-known “security” class permission in SELinux policy, used to control access to sensitive administrative and query API surfaces in the “selinuxfs”.
Variants§
CheckContext
Permission to validate Security Context using the “context” API.
ComputeAv
Permission to compute access vectors via the “access” API.
ComputeCreate
Permission to compute security contexts for newly created objects via “create”.
LoadPolicy
Permission to load a new binary policy into the kernel via the “load” API.
SetBool
Permission to commit booleans to control conditional elements of the policy.
SetCheckReqProt
Permission to change the way permissions are validated for mmap()
operations.
SetEnforce
Permission to switch the system between permissive and enforcing modes, via “enforce”.
Implementations§
Source§impl SecurityPermission
impl SecurityPermission
pub fn all_variants() -> Vec<Self>
Trait Implementations§
Source§impl ClassPermission for SecurityPermission
impl ClassPermission for SecurityPermission
fn class(&self) -> ObjectClass
Source§impl Clone for SecurityPermission
impl Clone for SecurityPermission
Source§fn clone(&self) -> SecurityPermission
fn clone(&self) -> SecurityPermission
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 SecurityPermission
impl Debug for SecurityPermission
Source§impl From<SecurityPermission> for Permission
impl From<SecurityPermission> for Permission
Source§fn from(v: SecurityPermission) -> Self
fn from(v: SecurityPermission) -> Self
Converts to this type from the input type.
Source§impl Hash for SecurityPermission
impl Hash for SecurityPermission
Source§impl PartialEq for SecurityPermission
impl PartialEq for SecurityPermission
impl Eq for SecurityPermission
impl StructuralPartialEq for SecurityPermission
Auto Trait Implementations§
impl Freeze for SecurityPermission
impl RefUnwindSafe for SecurityPermission
impl Send for SecurityPermission
impl Sync for SecurityPermission
impl Unpin for SecurityPermission
impl UnwindSafe for SecurityPermission
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
)