pub enum ProcessPermission {
Fork,
Transition,
GetSched,
SetSched,
GetPgid,
SetPgid,
Signal,
SigKill,
SigStop,
SigChld,
Ptrace,
GetSession,
}
Expand description
A well-known “process” class permission in SELinux policy that has a particular meaning in policy enforcement hooks.
Variants§
Fork
Permission to fork the current running process.
Transition
Permission to transition to a different security domain.
GetSched
Permission to get scheduling policy currently applied to a process.
SetSched
Permission to set scheduling policy for a process.
GetPgid
Permission to get the process group ID.
SetPgid
Permission to set the process group ID.
Signal
Permission to send a signal other than SIGKILL, SIGSTOP, or SIGCHLD to a process.
SigKill
Permission to send SIGKILL to a process.
SigStop
Permission to send SIGSTOP to a process.
SigChld
Permission to send SIGCHLD to a process.
Ptrace
Permission to trace a process.
GetSession
Permission to get the session ID.
Implementations§
source§impl ProcessPermission
impl ProcessPermission
pub fn all_variants() -> Vec<Self>
Trait Implementations§
source§impl ClassPermission for ProcessPermission
impl ClassPermission for ProcessPermission
fn class(&self) -> ObjectClass
source§impl Clone for ProcessPermission
impl Clone for ProcessPermission
source§fn clone(&self) -> ProcessPermission
fn clone(&self) -> ProcessPermission
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 ProcessPermission
impl Debug for ProcessPermission
source§impl From<ProcessPermission> for Permission
impl From<ProcessPermission> for Permission
source§fn from(v: ProcessPermission) -> Self
fn from(v: ProcessPermission) -> Self
Converts to this type from the input type.
source§impl Hash for ProcessPermission
impl Hash for ProcessPermission
source§impl PartialEq for ProcessPermission
impl PartialEq for ProcessPermission
source§fn eq(&self, other: &ProcessPermission) -> bool
fn eq(&self, other: &ProcessPermission) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProcessPermission
impl StructuralPartialEq for ProcessPermission
Auto Trait Implementations§
impl Freeze for ProcessPermission
impl RefUnwindSafe for ProcessPermission
impl Send for ProcessPermission
impl Sync for ProcessPermission
impl Unpin for ProcessPermission
impl UnwindSafe for ProcessPermission
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