Centralize sandbox destination authority
This commit is contained in:
parent
54cc167f81
commit
f8849cdb5f
1 changed files with 112 additions and 48 deletions
|
|
@ -128,20 +128,6 @@ impl fmt::Debug for SandboxLayoutV1 {
|
|||
}
|
||||
|
||||
impl SandboxLayoutV1 {
|
||||
/// Returns the fixed protected destination set shared by all executable roles.
|
||||
///
|
||||
/// # Errors
|
||||
/// Returns an error only if the built-in layout violates the layout contract.
|
||||
pub fn default_layout() -> Result<Self, ConfigurationError> {
|
||||
Self::from_protected_destinations([
|
||||
"/workspace".to_owned(),
|
||||
"/run/lazaret".to_owned(),
|
||||
"/proc".to_owned(),
|
||||
"/sys".to_owned(),
|
||||
"/dev".to_owned(),
|
||||
])
|
||||
}
|
||||
|
||||
/// Builds the closed destination set supplied by default sandbox-layout construction.
|
||||
///
|
||||
/// # Errors
|
||||
|
|
|
|||
Loading…
Reference in a new issue