Struct oci_spec::runtime::LinuxCapabilities
source · 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§fn eq(&self, other: &LinuxCapabilities) -> bool
fn eq(&self, other: &LinuxCapabilities) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)