INNER CODE UNIT · Rust
read_paths
ouch-org/ouch · src/sandbox/mod.rs:51
pub fn read_paths(&self) -> &[PathBuf] {
&self.read
}
pub fn read_write_paths(&self) -> &[PathBuf] {
&self.read_write
}
pub fn remove_in_paths(&self) -> &[PathBuf] {
&self.remove_in
}
pub fn remove_dir_in_paths(&self) -> &[PathBuf] {
&self.remove_dir_in
}
/// Apply the policy and return whether the sandbox is now enforced.
/// Failures emit a warning and let the process run unrestricted.