MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / parse_filesystem_policy

Function parse_filesystem_policy

crates/openshell-supervisor-network/src/opa.rs:690–702  ·  view source on GitHub ↗
(val: &regorus::Value)

Source from the content-addressed store, hash-verified

688}
689
690fn parse_filesystem_policy(val: &regorus::Value) -> FilesystemPolicy {
691 FilesystemPolicy {
692 read_only: get_str_array(val, "read_only")
693 .into_iter()
694 .map(PathBuf::from)
695 .collect(),
696 read_write: get_str_array(val, "read_write")
697 .into_iter()
698 .map(PathBuf::from)
699 .collect(),
700 include_workdir: get_bool(val, "include_workdir").unwrap_or(true),
701 }
702}
703
704fn parse_landlock_policy(val: &regorus::Value) -> LandlockPolicy {
705 let compat = get_str(val, "compatibility").unwrap_or_default();

Callers 1

query_sandbox_configMethod · 0.85

Calls 2

get_str_arrayFunction · 0.85
get_boolFunction · 0.85

Tested by

no test coverage detected