pub struct FileSystemMountOptions {
pub context: Option<Vec<u8>>,
pub def_context: Option<Vec<u8>>,
pub fs_context: Option<Vec<u8>>,
pub root_context: Option<Vec<u8>>,
}
Expand description
SELinux security context-related filesystem mount options. These options are documented in the
context=context, fscontext=context, defcontext=context, and rootcontext=context
section of
the mount(8)
manpage.
Fields§
§context: Option<Vec<u8>>
Specifies the effective security context to use for all nodes in the filesystem, and the filesystem itself. If the filesystem already contains security attributes then these are ignored. May not be combined with any of the other options.
def_context: Option<Vec<u8>>
Specifies an effective security context to use for un-labeled nodes in the filesystem, rather than falling-back to the policy-defined “file” context.
fs_context: Option<Vec<u8>>
The value of the fscontext=[security-context]
mount option. This option is used to
label the filesystem (superblock) itself.
root_context: Option<Vec<u8>>
The value of the rootcontext=[security-context]
mount option. This option is used to
(re)label the inode located at the filesystem mountpoint.
Trait Implementations§
Source§impl Clone for FileSystemMountOptions
impl Clone for FileSystemMountOptions
Source§fn clone(&self) -> FileSystemMountOptions
fn clone(&self) -> FileSystemMountOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileSystemMountOptions
impl Debug for FileSystemMountOptions
Source§impl PartialEq for FileSystemMountOptions
impl PartialEq for FileSystemMountOptions
impl StructuralPartialEq for FileSystemMountOptions
Auto Trait Implementations§
impl Freeze for FileSystemMountOptions
impl RefUnwindSafe for FileSystemMountOptions
impl Send for FileSystemMountOptions
impl Sync for FileSystemMountOptions
impl Unpin for FileSystemMountOptions
impl UnwindSafe for FileSystemMountOptions
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
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)
clone_to_uninit
)