#[non_exhaustive]pub enum SecurityOption {
AppArmor(ProtectedString),
NoNewPrivileges(bool),
SeccompProfile(ProtectedString),
SecurityLabelDisable(bool),
SecurityLabelFileType(ProtectedString),
SecurityLabelLevel(ProtectedString),
SecurityLabelNested(bool),
SecurityLabelType(ProtectedString),
Mask(ProtectedString),
Unmask(ProtectedString),
}Expand description
One format-independent service security option.
Native adapters retain ordering and duplicates around this value. They classify any source-specific singleton conflicts rather than imposing those rules on the neutral model.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AppArmor(ProtectedString)
Selects an AppArmor profile.
NoNewPrivileges(bool)
Enables or disables the no-new-privileges security bit.
SeccompProfile(ProtectedString)
Selects a seccomp profile.
SecurityLabelDisable(bool)
Selects whether SELinux labeling is disabled (true disables labels).
SecurityLabelFileType(ProtectedString)
Selects the SELinux file type.
SecurityLabelLevel(ProtectedString)
Selects the SELinux level.
SecurityLabelNested(bool)
Enables or disables nested SELinux labeling.
SecurityLabelType(ProtectedString)
Selects the SELinux type.
Mask(ProtectedString)
Masks one or more colon-separated container paths, or ALL.
Unmask(ProtectedString)
Unmasks one or more colon-separated container paths, or ALL.
Trait Implementations§
Source§impl Clone for SecurityOption
impl Clone for SecurityOption
Source§fn clone(&self) -> SecurityOption
fn clone(&self) -> SecurityOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityOption
impl Debug for SecurityOption
impl Eq for SecurityOption
Source§impl PartialEq for SecurityOption
impl PartialEq for SecurityOption
impl StructuralPartialEq for SecurityOption
Auto Trait Implementations§
impl Freeze for SecurityOption
impl RefUnwindSafe for SecurityOption
impl Send for SecurityOption
impl Sync for SecurityOption
impl Unpin for SecurityOption
impl UnsafeUnpin for SecurityOption
impl UnwindSafe for SecurityOption
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