INNER CODE UNIT · Rust
available
ouch-org/ouch · src/sandbox/mod.rs:118
pub fn available() -> bool {
#[cfg(target_os = "linux")]
{
landlock::is_available()
}
#[cfg(not(target_os = "linux"))]
{
false
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn policy_collects_paths() {
let mut policy = SandboxPolicy::new();