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

Function parse_landlock_policy

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

Source from the content-addressed store, hash-verified

702}
703
704fn parse_landlock_policy(val: &regorus::Value) -> LandlockPolicy {
705 let compat = get_str(val, "compatibility").unwrap_or_default();
706 LandlockPolicy {
707 compatibility: if compat == "hard_requirement" {
708 LandlockCompatibility::HardRequirement
709 } else {
710 LandlockCompatibility::BestEffort
711 },
712 }
713}
714
715fn parse_process_policy(val: &regorus::Value) -> ProcessPolicy {
716 ProcessPolicy {

Callers 1

query_sandbox_configMethod · 0.85

Calls 1

get_strFunction · 0.85

Tested by

no test coverage detected