pub enum ProcessPermission {
Show 21 variants
DynTransition,
Fork,
GetPgid,
GetRlimit,
GetSched,
GetSession,
Ptrace,
RlimitInh,
SetCurrent,
SetExec,
SetFsCreate,
SetKeyCreate,
SetPgid,
SetRlimit,
SetSched,
SetSockCreate,
SigChld,
SigKill,
SigStop,
Signal,
Transition,
}
Expand description
A well-known “process” class permission in SELinux policy that has a particular meaning in policy enforcement hooks.
Variants§
DynTransition
Permission to dynamically transition a process to a different security domain.
Fork
Permission to fork the current running process.
GetPgid
Permission to get the process group ID.
GetRlimit
Permission to get the resource limits on a process.
GetSched
Permission to get scheduling policy currently applied to a process.
GetSession
Permission to get the session ID.
Ptrace
Permission to trace a process.
RlimitInh
Permission to inherit the parent process’s resource limits on exec.
SetCurrent
Permission to set the calling task’s current Security Context. The “dyntransition” permission separately limits which Contexts “setcurrent” may be used to transition to.
SetExec
Permission to set the Security Context used by exec()
.
SetFsCreate
Permission to set the Security Context used when creating filesystem objects.
SetKeyCreate
Permission to set the Security Context used when creating kernel keyrings.
SetPgid
Permission to set the process group ID.
SetRlimit
Permission to set the resource limits on a process.
SetSched
Permission to set scheduling policy for a process.
SetSockCreate
Permission to set the Security Context used when creating new labeled sockets.
SigChld
Permission to send SIGCHLD to a process.
SigKill
Permission to send SIGKILL to a process.
SigStop
Permission to send SIGSTOP to a process.
Signal
Permission to send a signal other than SIGKILL, SIGSTOP, or SIGCHLD to a process.
Transition
Permission to transition to a different security domain.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl Hash for ProcessPermission
impl Hash for ProcessPermission
Source§impl PartialEq for ProcessPermission
impl PartialEq for ProcessPermission
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
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)
clone_to_uninit
)