Enum dpdk_unix::android_linux::capabilities::Capability [−][src]
#[repr(u8)]pub enum Capability { AuditControl, AuditRead, AuditWrite, BlockSuspend, Chown, DiscretionaryAccessControlBypass, DiscretionaryAccessControlFileReadBypass, FileOwnerBypass, FileSetId, LockMemory, IpcOwner, Kill, Lease, Immutable, MandatoryAccessControlBypass, MandatoryAccessControlOverride, MakeNodes, SystemAdministration, NetworkAdministration, BindPortsBelow1024, NetRaw, SetUid, SetGid, SetFileCapabilities, SetProcessCapabilities, RebootAndKexecLoad, Chroot, KernelModule, Nice, ProcessAccounting, PTrace, RawIO, Resource, Time, TtyConfig, Syslog, WakeAlarm, }
Linux Security Capabilities.
Variants
AuditControlAuditReadAuditWriteBlockSuspendChownDiscretionaryAccessControlBypassDiscretionaryAccessControlFileReadBypassFileOwnerBypassFileSetIdLockMemoryIpcOwnerKillLeaseImmutableMandatoryAccessControlBypassMandatoryAccessControlOverrideMakeNodesSystemAdministrationNetworkAdministrationBindPortsBelow1024NetRawSetUidSetGidSetFileCapabilitiesSetProcessCapabilitiesRebootAndKexecLoadChrootKernelModuleNiceProcessAccountingPTraceRawIOResourceTimeTtyConfigSyslogWakeAlarm
Methods
impl Capability[src]
impl Capabilitypub fn clear_all_ambient_capabilities()[src]
pub fn clear_all_ambient_capabilities()Clears all ambient capabilities from the current process.
pub fn ensure_capabilities_dropped(
drop_these_capabilities_if_current_process_has_them: &[Capability]
)[src]
pub fn ensure_capabilities_dropped(
drop_these_capabilities_if_current_process_has_them: &[Capability]
)Ensures the given capabilities are dropped from the current process.
Tries to drop each capability separately, ie not all or nothing.
pub fn current_process_has(&self) -> Option<bool>[src]
pub fn current_process_has(&self) -> Option<bool>Does the current process have this capability?
Returns None if this capability isn't recognised by the Linux kernel.
pub fn drop_from_current_process(&self) -> Result<(), ()>[src]
pub fn drop_from_current_process(&self) -> Result<(), ()>Returns Err if a lack-of-permssions error occurred.
Trait Implementations
impl Debug for Capability[src]
impl Debug for Capabilityfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Capability[src]
impl Copy for Capabilityimpl Clone for Capability[src]
impl Clone for Capabilityfn clone(&self) -> Capability[src]
fn clone(&self) -> CapabilityReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Capability[src]
impl PartialEq for Capabilityfn eq(&self, other: &Capability) -> bool[src]
fn eq(&self, other: &Capability) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Capability[src]
impl Eq for Capabilityimpl PartialOrd for Capability[src]
impl PartialOrd for Capabilityfn partial_cmp(&self, other: &Capability) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Capability) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Capability[src]
impl Ord for Capabilityfn cmp(&self, other: &Capability) -> Ordering[src]
fn cmp(&self, other: &Capability) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Capability[src]
impl Hash for CapabilityAuto Trait Implementations
impl Send for Capability
impl Send for Capabilityimpl Sync for Capability
impl Sync for Capability