pub struct LinuxCapabilities { /* private fields */ }
Expand description
LinuxCapabilities specifies the list of allowed capabilities that are kept for a process. http://man7.org/linux/man-pages/man7/capabilities.7.html
Implementations§
Source§impl LinuxCapabilities
impl LinuxCapabilities
Sourcepub fn bounding(&self) -> &Option<Capabilities>
pub fn bounding(&self) -> &Option<Capabilities>
Bounding is the set of capabilities checked by the kernel.
Sourcepub fn effective(&self) -> &Option<Capabilities>
pub fn effective(&self) -> &Option<Capabilities>
Effective is the set of capabilities checked by the kernel.
Sourcepub fn inheritable(&self) -> &Option<Capabilities>
pub fn inheritable(&self) -> &Option<Capabilities>
Inheritable is the capabilities preserved across execve.
Sourcepub fn permitted(&self) -> &Option<Capabilities>
pub fn permitted(&self) -> &Option<Capabilities>
Permitted is the limiting superset for effective capabilities.
Sourcepub fn ambient(&self) -> &Option<Capabilities>
pub fn ambient(&self) -> &Option<Capabilities>
Ambient is the ambient set of capabilities that are kept.
Source§impl LinuxCapabilities
impl LinuxCapabilities
Sourcepub fn set_bounding(&mut self, val: Option<Capabilities>) -> &mut Self
pub fn set_bounding(&mut self, val: Option<Capabilities>) -> &mut Self
Bounding is the set of capabilities checked by the kernel.
Sourcepub fn set_effective(&mut self, val: Option<Capabilities>) -> &mut Self
pub fn set_effective(&mut self, val: Option<Capabilities>) -> &mut Self
Effective is the set of capabilities checked by the kernel.
Sourcepub fn set_inheritable(&mut self, val: Option<Capabilities>) -> &mut Self
pub fn set_inheritable(&mut self, val: Option<Capabilities>) -> &mut Self
Inheritable is the capabilities preserved across execve.
Sourcepub fn set_permitted(&mut self, val: Option<Capabilities>) -> &mut Self
pub fn set_permitted(&mut self, val: Option<Capabilities>) -> &mut Self
Permitted is the limiting superset for effective capabilities.
Sourcepub fn set_ambient(&mut self, val: Option<Capabilities>) -> &mut Self
pub fn set_ambient(&mut self, val: Option<Capabilities>) -> &mut Self
Ambient is the ambient set of capabilities that are kept.
Trait Implementations§
Source§impl Clone for LinuxCapabilities
impl Clone for LinuxCapabilities
Source§fn clone(&self) -> LinuxCapabilities
fn clone(&self) -> LinuxCapabilities
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 LinuxCapabilities
impl Debug for LinuxCapabilities
Source§impl Default for LinuxCapabilities
impl Default for LinuxCapabilities
Source§impl<'de> Deserialize<'de> for LinuxCapabilities
impl<'de> Deserialize<'de> for LinuxCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LinuxCapabilities
impl PartialEq for LinuxCapabilities
Source§impl Serialize for LinuxCapabilities
impl Serialize for LinuxCapabilities
impl Eq for LinuxCapabilities
impl StructuralPartialEq for LinuxCapabilities
Auto Trait Implementations§
impl Freeze for LinuxCapabilities
impl RefUnwindSafe for LinuxCapabilities
impl Send for LinuxCapabilities
impl Sync for LinuxCapabilities
impl Unpin for LinuxCapabilities
impl UnwindSafe for LinuxCapabilities
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
)