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 more