pub struct ConfigRootAt {
pub path: PathBuf,
pub resolved: PathBuf,
pub own: bool,
}Expand description
A configuration root in a directory, as super::SensitivePaths::config_roots_in
gives it.
Fields§
§path: PathBuf§resolved: PathBufpath with its symbolic links resolved.
own: boolThe instance’s own project directory: held even when absent, the
working entries of its state/ left writable.
Implementations§
Source§impl ConfigRootAt
impl ConfigRootAt
Sourcepub fn shut_to_writes(&self) -> bool
pub fn shut_to_writes(&self) -> bool
Whether a sandboxed command may write nothing in this root but what
the policy itself names writable: a foreign root, every entry of
which the gate takes for configuration
(super::SensitivePaths::names_configuration).
Sourcepub fn writable_state_entry(&self, name: &str) -> bool
pub fn writable_state_entry(&self, name: &str) -> bool
Whether a sandboxed command may write the entry name directly in
this root’s state/: in the instance’s own, its working space
(super::SensitivePaths::is_engine_working_entry), which is all the gate
leaves out of configuration there; in a foreign one none
(Self::shut_to_writes). Nothing directly in the root itself, nor
state/ as a whole.
Sourcepub fn working_entries(&self) -> Vec<PathBuf>
pub fn working_entries(&self) -> Vec<PathBuf>
The working entries of this root’s state/ as the root resolves,
whether or not they exist: what Self::writable_state_entry admits.