Enum caps::Capability [−][src]
#[repr(u8)]pub enum Capability { CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_DAC_READ_SEARCH, CAP_FOWNER, CAP_FSETID, CAP_KILL, CAP_SETGID, CAP_SETUID, CAP_SETPCAP, CAP_LINUX_IMMUTABLE, CAP_NET_BIND_SERVICE, CAP_NET_BROADCAST, CAP_NET_ADMIN, CAP_NET_RAW, CAP_IPC_LOCK, CAP_IPC_OWNER, CAP_SYS_MODULE, CAP_SYS_RAWIO, CAP_SYS_CHROOT, CAP_SYS_PTRACE, CAP_SYS_PACCT, CAP_SYS_ADMIN, CAP_SYS_BOOT, CAP_SYS_NICE, CAP_SYS_RESOURCE, CAP_SYS_TIME, CAP_SYS_TTY_CONFIG, CAP_MKNOD, CAP_LEASE, CAP_AUDIT_WRITE, CAP_AUDIT_CONTROL, CAP_SETFCAP, CAP_MAC_OVERRIDE, CAP_MAC_ADMIN, CAP_SYSLOG, CAP_WAKE_ALARM, CAP_BLOCK_SUSPEND, CAP_AUDIT_READ, }
Linux capabilities.
All capabilities supported by Linux, including standard
POSIX and custom ones. See capabilities(7).
Variants
CAP_CHOWNCAP_CHOWN (from POSIX)
CAP_DAC_OVERRIDECAP_DAC_OVERRIDE (from POSIX)
CAP_DAC_READ_SEARCHCAP_DAC_READ_SEARCH (from POSIX)
CAP_FOWNERCAP_FOWNER (from POSIX)
CAP_FSETIDCAP_FSETID (from POSIX)
CAP_KILLCAP_KILL (from POSIX)
CAP_SETGIDCAP_SETGID (from POSIX)
CAP_SETUIDCAP_SETUID (from POSIX)
CAP_SETPCAPCAP_SETPCAP (from Linux)
CAP_LINUX_IMMUTABLECAP_NET_BIND_SERVICECAP_NET_BROADCASTCAP_NET_ADMINCAP_NET_RAWCAP_IPC_LOCKCAP_IPC_OWNERCAP_SYS_MODULECAP_SYS_MODULE (from Linux)
CAP_SYS_RAWIOCAP_SYS_RAWIO (from Linux)
CAP_SYS_CHROOTCAP_SYS_CHROOT (from Linux)
CAP_SYS_PTRACECAP_SYS_PTRACE (from Linux)
CAP_SYS_PACCTCAP_SYS_PACCT (from Linux)
CAP_SYS_ADMINCAP_SYS_ADMIN (from Linux)
CAP_SYS_BOOTCAP_SYS_BOOT (from Linux)
CAP_SYS_NICECAP_SYS_NICE (from Linux)
CAP_SYS_RESOURCECAP_SYS_RESOURCE (from Linux)
CAP_SYS_TIMECAP_SYS_TIME (from Linux)
CAP_SYS_TTY_CONFIGCAP_SYS_TTY_CONFIG (from Linux)
CAP_MKNODCAP_SYS_MKNOD (from Linux 2.4)
CAP_LEASECAP_LEASE (from Linux 2.4)
CAP_AUDIT_WRITECAP_AUDIT_CONTROLCAP_AUDIT_CONTROL (from Linux 2.6.11)
CAP_SETFCAPCAP_MAC_OVERRIDECAP_MAC_ADMINCAP_SYSLOGCAP_SYSLOG (from Linux 2.6.37)
CAP_WAKE_ALARMCAP_BLOCK_SUSPENDCAP_AUDIT_READCAP_AUDIT_READ (from Linux 3.16).
Methods
impl Capability[src]
impl Capabilitypub fn bitmask(&self) -> u64[src]
pub fn bitmask(&self) -> u64Returns the bitmask corresponding to this capability value.
pub fn index(&self) -> u8[src]
pub fn index(&self) -> u8Returns the index of this capability, i.e. its kernel-defined value.
Trait Implementations
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 Hash for Capability[src]
impl Hash for Capabilityfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
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 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 Copy for Capability[src]
impl Copy for Capabilityimpl Display for Capability[src]
impl Display 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 FromStr for Capability[src]
impl FromStr for CapabilityAuto Trait Implementations
impl Send for Capability
impl Send for Capabilityimpl Sync for Capability
impl Sync for Capability